Skip to content

Commit

Permalink
Publisher Information incorporated.
Browse files Browse the repository at this point in the history
  • Loading branch information
Asharma authored and Asharma committed Aug 26, 2016
1 parent 7101c77 commit 153857a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/index.js
Expand Up @@ -63,6 +63,13 @@ var flatten = function(options) {
moduleInfo.url = json.url.web;
}
}
if (json.author) {
if (typeof json.author === 'object') {
moduleInfo.publisher = json.author.name,
moduleInfo.email = json.author.email,
moduleInfo.url = json.author.url
}
}

/*istanbul ignore next*/
if (unknown) {
Expand Down

0 comments on commit 153857a

Please sign in to comment.