copyright-regex

Regex for matching and parsing copyright statements.

MIT 8 个版本
安装
npm install copyright-regex
yarn add copyright-regex
pnpm add copyright-regex
bun add copyright-regex
README

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.

版本列表
1.1.6 2016-12-07
1.1.5 2015-05-25
1.1.4 2015-02-01
1.1.3 2015-02-01
1.1.2 2015-02-01
1.1.1 2015-02-01
1.1.0 2015-02-01
1.0.0 2015-02-01