stringify-author
Stringify an authors object to name <email> (url)
.
Install
Install with npm
$ npm i stringify-author --save
Usage
var stringify = require('stringify-author');
var authors = stringify({
name: 'Jon Schlinkert',
email: 'jon.schlinkert@sellside.com',
url: 'https://github.com/jonschlinkert'
});
console.log(authors);
Any of the properties can be used or missing:
var authors = [
{name: 'Brian Woodward', url: 'https://github.com/doowb'},
{name: 'Jon Schlinkert', url: 'https://github.com/jonschlinkert'}
];
console.log(authors.map(stringify));
Similar or related projects
Running tests
Install dev dependencies:
$ npm i -d && npm test
Contributing
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Author
Jon Schlinkert
License
Copyright © 2015 Jon Schlinkert
Released under the MIT license.
This file was generated by verb-cli on November 22, 2015.