Home

Awesome

copyright-regex NPM version NPM monthly downloads NPM total downloads Linux Build Status

Regex for matching and parsing copyright statements.

Install

Install with npm:

$ npm install --save copyright-regex

Usage

var regex = require('copyright-regex');

var str = 'abc\nCopyright (c) 2013-2015, 2016, Jon Schlinkert.\nxyz';
var matches = str.match(regex());

// matches[0] => 'Copyright (c) 2013-2015, 2016, Jon Schlinkert'
// matches[1] => 'Copyright'
// matches[2] => '(c)'
// matches[3] => '2013-2015, 2016, '
// matches[4] => '2016'
// matches[5] => 'Jon Schlinkert'

About

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.

Contributors

CommitsContributor<br/>
18jonschlinkert
1arthurvr
1tunnckoCore
1pdehaan

Building docs

(This document was generated by verb-generate-readme (a verb generator), please don't edit the readme directly. Any changes to the readme must be made in .verb.md.)

To generate the readme and API documentation with verb:

$ npm install -g verb verb-generate-readme && verb

Running tests

Install dev dependencies:

$ npm install -d && npm test

Author

Jon Schlinkert

License

Copyright © 2016, Jon Schlinkert. Released under the MIT license.


This file was generated by verb-generate-readme, v0.2.0, on December 07, 2016.