Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/regexhq/copyright-regex
Regular expression for matching and parsing copyright statements.
https://github.com/regexhq/copyright-regex
copyright parsing regex regular-expression
Last synced: 2 months ago
JSON representation
Regular expression for matching and parsing copyright statements.
- Host: GitHub
- URL: https://github.com/regexhq/copyright-regex
- Owner: regexhq
- License: mit
- Created: 2015-02-01T09:16:35.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2017-07-01T21:34:08.000Z (over 7 years ago)
- Last Synced: 2024-11-08T03:39:39.426Z (3 months ago)
- Topics: copyright, parsing, regex, regular-expression
- Language: JavaScript
- Size: 22.5 KB
- Stars: 10
- Watchers: 13
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# copyright-regex [![NPM version](https://img.shields.io/npm/v/copyright-regex.svg?style=flat)](https://www.npmjs.com/package/copyright-regex) [![NPM monthly downloads](https://img.shields.io/npm/dm/copyright-regex.svg?style=flat)](https://npmjs.org/package/copyright-regex) [![NPM total downloads](https://img.shields.io/npm/dt/copyright-regex.svg?style=flat)](https://npmjs.org/package/copyright-regex) [![Linux Build Status](https://img.shields.io/travis/regexhq/copyright-regex.svg?style=flat&label=Travis)](https://travis-ci.org/regexhq/copyright-regex)
> Regex for matching and parsing copyright statements.
## Install
Install with [npm](https://www.npmjs.com/):
```sh
$ npm install --save copyright-regex
```## Usage
```js
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](../../issues/new).
### Contributors
| **Commits** | **Contributor**
|
| --- | --- |
| 18 | [jonschlinkert](https://github.com/jonschlinkert) |
| 1 | [arthurvr](https://github.com/arthurvr) |
| 1 | [tunnckoCore](https://github.com/tunnckoCore) |
| 1 | [pdehaan](https://github.com/pdehaan) |### Building docs
_(This document was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme) (a [verb](https://github.com/verbose/verb) generator), please don't edit the readme directly. Any changes to the readme must be made in [.verb.md](.verb.md).)_
To generate the readme and API documentation with [verb](https://github.com/verbose/verb):
```sh
$ npm install -g verb verb-generate-readme && verb
```### Running tests
Install dev dependencies:
```sh
$ npm install -d && npm test
```### Author
**Jon Schlinkert**
* [github/regexhq](https://github.com/regexhq)
* [twitter/regexhq](http://twitter.com/regexhq)### License
Copyright © 2016, [Jon Schlinkert](https://github.com/regexhq).
Released under the [MIT license](https://github.com/regexhq/copyright-regex/blob/master/LICENSE).***
_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.2.0, on December 07, 2016._