Muqriz 48f16bfc3e initail first | 4 ay önce | |
---|---|---|
.. | ||
LICENSE | 4 ay önce | |
README.md | 4 ay önce | |
index.js | 4 ay önce | |
package.json | 4 ay önce |
Regular expression for parsing an
author
string into an object following npm conventions.
This the regex used by parse-authors.
Related
npm i author-regex --save
bower install author-regex --save
Run
npm test
var re = require('author-regex');
function authors(str) {
return re().exec(str);
}
console.log(author('Jon Schlinkert <foo@bar.com> (https://github.com/jonschlinkert)'));
Returns:
[ 'Jon Schlinkert <foo@bar.com> (https://github.com/jonschlinkert)',
'Jon Schlinkert',
'foo@bar.com',
'https://github.com/jonschlinkert',
index: 0,
input: 'Jon Schlinkert <foo@bar.com> (https://github.com/jonschlinkert)' ]
Jon Schlinkert
Copyright © 2014 Jon Schlinkert, contributors.
Released under the MIT license
This file was generated by verb-cli on September 29, 2014.