Détail du package

parse-copyright

jonschlinkert3.2k0.4.0

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

copyright, parse

readme

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.