parse-copyright
Parse copyright statement(s) into an array of copyright objects.
Last updated 11 years ago by jonschlinkert .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install parse-copyright 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 0.4.0                                ...           latest (11 years ago)

5 Versions

  • 0.4.0                                ...           11 years ago
  • 0.3.1                                ...           11 years ago
  • 0.3.0                                ...           11 years ago
  • 0.2.0                                ...           11 years ago
  • 0.1.0                                ...           11 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (1)
Dev Dependencies (1)
Dependents (3)

Copyright 2013 - present © cnpmjs.org | Home |