Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

author-regex

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

author-regex

Regular expression for parsing an `author` string into an object following npm conventions.

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
384K
increased by1.34%
Maintainers
1
Weekly downloads
 
Created
Source

author-regex NPM version

Regular expression for parsing an author string into an object following npm conventions.

This the regex used by parse-authors.

Related

Install

Install with npm
npm i author-regex --save
Install with bower
bower install author-regex --save

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

Jon Schlinkert

License

Copyright (c) 2014 Jon Schlinkert, contributors.
Released under the MIT license


This file was generated by verb-cli on September 29, 2014.

Keywords

FAQs

Package last updated on 08 Mar 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc