Regular expression for parsing an `author` string into an object following npm conventions.
npm install author-regex
> Regular expression for parsing an author string into an object following npm conventions.
This the regex used by parse-authors.
Related
- parse-author
- parse-authors
``bash`
npm i author-regex --save
#### Install with bower
`bash`
bower install author-regex --save
Run
`bash`
npm test
`js
var re = require('author-regex');
function authors(str) {
return re().exec(str);
}
console.log(author('Jon Schlinkert
`
Returns:
`js``
[ 'Jon Schlinkert
'Jon Schlinkert',
'foo@bar.com',
'https://github.com/jonschlinkert',
index: 0,
input: 'Jon Schlinkert
Jon Schlinkert
+ github/jonschlinkert
+ twitter/jonschlinkert
*
_This file was generated by verb-cli on September 29, 2014._