Parse a string into an object with
name,urlproperties following npm conventions. Useful for theauthorsproperty in package.json or for parsing an AUTHORS file into an array of authors objects.
Install with npm:
$ npm i parse-author --savevar authors = require('parse-author'); authors('Jon Schlinkert <jon.schlinkert@sellside.com> (https://github.com/jonschlinkert)'); //=> {name: 'Jon Schlinkert', email: 'jon.schlinkert@sellside.com', url: 'https://github.com/jonschlinkert'}Any of the properties can be used or missing:
authors('') //=> {name: '', email: '', url: ''} authors('Jon Schlinkert (https://github.com/jonschlinkert)'); //=> {name: 'Jon Schlinkert', email: '', url: 'https://github.com/jonschlinkert'}Generate readme and API documentation with verb:
$ npm i -d && npm run docsOr, if verb is installed globally:
$ verbInstall dev dependencies:
$ npm i -d && npm testPull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Jon Schlinkert
Copyright © 2016 Jon Schlinkert Released under the MIT license.
This file was generated by verb, v0.9.0, on February 20, 2016.