parse-copyright

0.4.0 • Public • Published

parse-copyright NPM version

Parse copyright statement(s) into an array of copyright objects.

Install with npm

npm i parse-copyright --save

Usage

var parse = require('parse-copyright');
 
parse('abc\nCopyright (c) 2013-2015, Jon Schlinkert.\nxyz');

Returns an array of copyright objects:

[{
  statement: 'Copyright (c) 2013-2015, Jon Schlinkert',
  prefix: 'Copyright',
  symbol: '(c)',
  dateRange: '2013, 2015',
  latest: '2015',
  author: 'Jon Schlinkert'
}]

Run 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 (c) 2015 Jon Schlinkert
Released under the MIT license


This file was generated by verb on February 19, 2015.

Readme

Keywords

Package Sidebar

Install

npm i parse-copyright

Weekly Downloads

579

Version

0.4.0

License

none

Last publish

Collaborators

  • jonschlinkert