Skip to content

jonschlinkert/parse-copyright

Repository files navigation

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.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published