regex-cache
Advanced tools
Comparing version 0.4.3 to 0.4.4
/*! | ||
* regex-cache <https://github.com/jonschlinkert/regex-cache> | ||
* | ||
* Copyright (c) 2015 Jon Schlinkert. | ||
* Licensed under the MIT license. | ||
* Copyright (c) 2015-2017, Jon Schlinkert. | ||
* Released under the MIT License. | ||
*/ | ||
@@ -10,3 +10,2 @@ | ||
var isPrimitive = require('is-primitive'); | ||
var equal = require('is-equal-shallow'); | ||
@@ -13,0 +12,0 @@ var basic = {}; |
{ | ||
"name": "regex-cache", | ||
"description": "Memoize the results of a call to the RegExp constructor, avoiding repetitious runtime compilation of the same string and options, resulting in suprising performance improvements.", | ||
"version": "0.4.3", | ||
"description": "Memoize the results of a call to the RegExp constructor, avoiding repetitious runtime compilation of the same string and options, resulting in surprising performance improvements.", | ||
"version": "0.4.4", | ||
"homepage": "https://github.com/jonschlinkert/regex-cache", | ||
"author": "Jon Schlinkert (https://github.com/jonschlinkert)", | ||
"contributors": [ | ||
"Jon Schlinkert (http://twitter.com/jonschlinkert)", | ||
"Martin Kolárik (https://kolarik.sk)" | ||
], | ||
"repository": "jonschlinkert/regex-cache", | ||
@@ -24,8 +28,7 @@ "bugs": { | ||
"dependencies": { | ||
"is-equal-shallow": "^0.1.3", | ||
"is-primitive": "^2.0.0" | ||
"is-equal-shallow": "^0.1.3" | ||
}, | ||
"devDependencies": { | ||
"ansi-bold": "^0.1.1", | ||
"benchmarked": "^0.1.5", | ||
"chalk": "^1.1.3", | ||
"gulp-format-md": "^0.1.7", | ||
@@ -32,0 +35,0 @@ "micromatch": "^2.3.7", |
@@ -1,4 +0,4 @@ | ||
# regex-cache [![NPM version](https://img.shields.io/npm/v/regex-cache.svg?style=flat)](https://www.npmjs.com/package/regex-cache) [![NPM downloads](https://img.shields.io/npm/dm/regex-cache.svg?style=flat)](https://npmjs.org/package/regex-cache) [![Build Status](https://img.shields.io/travis/jonschlinkert/regex-cache.svg?style=flat)](https://travis-ci.org/jonschlinkert/regex-cache) | ||
# regex-cache [![NPM version](https://img.shields.io/npm/v/regex-cache.svg?style=flat)](https://www.npmjs.com/package/regex-cache) [![NPM monthly downloads](https://img.shields.io/npm/dm/regex-cache.svg?style=flat)](https://npmjs.org/package/regex-cache) [![NPM total downloads](https://img.shields.io/npm/dt/regex-cache.svg?style=flat)](https://npmjs.org/package/regex-cache) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/regex-cache.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/regex-cache) [![Windows Build Status](https://img.shields.io/appveyor/ci/jonschlinkert/regex-cache.svg?style=flat&label=AppVeyor)](https://ci.appveyor.com/project/jonschlinkert/regex-cache) | ||
> Memoize the results of a call to the RegExp constructor, avoiding repetitious runtime compilation of the same string and options, resulting in suprising performance improvements. | ||
> Memoize the results of a call to the RegExp constructor, avoiding repetitious runtime compilation of the same string and options, resulting in surprising performance improvements. | ||
@@ -10,3 +10,3 @@ ## Install | ||
```sh | ||
$ npm install regex-cache --save | ||
$ npm install --save regex-cache | ||
``` | ||
@@ -121,29 +121,35 @@ | ||
Using the RegExp constructor offers a lot of flexibility, but the runtime compilation comes at a price - it's slow. Not specifically because of the call to the RegExp constructor, but **because you have to build up the string before `new RegExp()` is even called**. | ||
## Contributing | ||
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/regex-cache/issues/new). | ||
## About | ||
## Building docs | ||
### Contributing | ||
Generate readme and API documentation with [verb](https://github.com/verbose/verb): | ||
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new). | ||
```sh | ||
$ npm install verb && npm run docs | ||
``` | ||
### Contributors | ||
Or, if [verb](https://github.com/verbose/verb) is installed globally: | ||
| **Commits** | **Contributor** | | ||
| --- | --- | | ||
| 31 | [jonschlinkert](https://github.com/jonschlinkert) | | ||
| 1 | [MartinKolarik](https://github.com/MartinKolarik) | | ||
### Building docs | ||
_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_ | ||
To generate the readme, run the following command: | ||
```sh | ||
$ verb | ||
$ npm install -g verbose/verb#dev verb-generate-readme && verb | ||
``` | ||
## Running tests | ||
### Running tests | ||
Install dev dependencies: | ||
Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command: | ||
```sh | ||
$ npm install -d && npm test | ||
$ npm install && npm test | ||
``` | ||
## Author | ||
### Author | ||
@@ -153,11 +159,11 @@ **Jon Schlinkert** | ||
* [github/jonschlinkert](https://github.com/jonschlinkert) | ||
* [twitter/jonschlinkert](http://twitter.com/jonschlinkert) | ||
* [twitter/jonschlinkert](https://twitter.com/jonschlinkert) | ||
## License | ||
### License | ||
Copyright © 2016, [Jon Schlinkert](https://github.com/jonschlinkert). | ||
Released under the [MIT license](https://github.com/jonschlinkert/regex-cache/blob/master/LICENSE). | ||
Copyright © 2017, [Jon Schlinkert](https://github.com/jonschlinkert). | ||
Released under the [MIT License](LICENSE). | ||
*** | ||
_This file was generated by [verb](https://github.com/verbose/verb), v, on April 01, 2016._ | ||
_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on September 01, 2017._ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9879
1
166
55
1
- Removedis-primitive@^2.0.0