zeke / package-json-to-readme

Generate README.md from package.json contents
npm.im/package-json-to-readme
384 stars 51 forks source link

fix(pkg): Accept repository as string or undefined #29

Closed Zerogiven closed 6 years ago

Zerogiven commented 6 years ago

Some packages have no repository inside package.json or (like js-yaml) it has a string as value instead of an object. (like { repository: "repourl" }).

billiegoose commented 6 years ago

@zeke are we not running package.json through some kind of normalizer? It looks like we're just using require(packagePath) which strikes me as funny since you've authored like 20 package data normalizing modules.

JigSawFr commented 6 years ago

Same problem with other packages

zeke commented 6 years ago

Thanks! This landed in 2.1.1