Skip to content

Latest commit

 

History

History
56 lines (38 loc) · 996 Bytes

.verbrc.md

File metadata and controls

56 lines (38 loc) · 996 Bytes

{%= name %} {%= badge("fury") %}

{%= description %}

This the regex used by parse-authors.

Related

Install

{%= include("install-npm", {save: 'true'}) %} {%= include("install-bower", {save: 'true'}) %}

Tests

Run

npm test

Usage

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)' ]

Author

{%= contrib("jon") %}

License

{%= copyright() %} {%= license() %}


{%= include("footer") %}