npm

Need private packages and team management tools?Check out npm Orgs. »

somebody

2.0.0 • Public • Published

somebody Build Status

Parse/stringify contact info like Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)

Install

$ npm install --save somebody

Usage

var somebody = require('somebody');
var author = 'Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)';
 
var parsed = somebody.parse(author);
//=> {name: 'Sindre Sorhus', email: 'sindresorhus@gmail.com', url: 'http://sindresorhus.com'}
 
somebody.stringify(parsed) === author;
//=> true

Email and URL are optional.

License

MIT © Sindre Sorhus

install

npm i somebody

Downloadsweekly downloads

54

version

2.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability