copyright-regex
Regex for matching and parsing copyright statements.
Last updated 9 years ago by jonschlinkert .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install copyright-regex 
SYNC missed versions from official npm registry.

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

Commits Contributor
18 jonschlinkert
1 arthurvr
1 tunnckoCore
1 pdehaan

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.

Current Tags

  • 1.1.6                                ...           latest (9 years ago)

8 Versions

  • 1.1.6                                ...           9 years ago
  • 1.1.5                                ...           11 years ago
  • 1.1.4                                ...           11 years ago
  • 1.1.3                                ...           11 years ago
  • 1.1.2                                ...           11 years ago
  • 1.1.1                                ...           11 years ago
  • 1.1.0                                ...           11 years ago
  • 1.0.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 (0)
None
Dev Dependencies (2)

Copyright 2013 - present © cnpmjs.org | Home |