fill-range
Advanced tools
Comparing version 2.2.3 to 2.2.4
/*! | ||
* fill-range <https://github.com/jonschlinkert/fill-range> | ||
* | ||
* Copyright (c) 2014-2015, Jon Schlinkert. | ||
* Licensed under the MIT License. | ||
* Copyright (c) 2014-2018, Jon Schlinkert. | ||
* Released under the MIT License. | ||
*/ | ||
@@ -7,0 +7,0 @@ |
{ | ||
"name": "fill-range", | ||
"description": "Fill in a range of numbers or letters, optionally passing an increment or multiplier to use.", | ||
"version": "2.2.3", | ||
"version": "2.2.4", | ||
"homepage": "https://github.com/jonschlinkert/fill-range", | ||
@@ -25,3 +25,3 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)", | ||
"isobject": "^2.0.0", | ||
"randomatic": "^1.1.3", | ||
"randomatic": "^3.0.0", | ||
"repeat-element": "^1.1.2", | ||
@@ -33,3 +33,4 @@ "repeat-string": "^1.5.2" | ||
"chalk": "^0.5.1", | ||
"should": "*" | ||
"gulp-format-md": "^1.0.0", | ||
"should": "^13.2.1" | ||
}, | ||
@@ -43,2 +44,3 @@ "keywords": [ | ||
"expansion", | ||
"fill", | ||
"glob", | ||
@@ -55,11 +57,26 @@ "match", | ||
"verb": { | ||
"toc": true, | ||
"layout": "default", | ||
"tasks": [ | ||
"readme" | ||
], | ||
"plugins": [ | ||
"gulp-format-md" | ||
], | ||
"related": { | ||
"list": [ | ||
"micromatch", | ||
"braces", | ||
"expand-range", | ||
"braces", | ||
"is-glob" | ||
"is-glob", | ||
"micromatch" | ||
] | ||
} | ||
}, | ||
"lint": { | ||
"reflinks": true | ||
}, | ||
"reflinks": [ | ||
"micromatch", | ||
"randomatic" | ||
] | ||
} | ||
} |
137
README.md
@@ -1,13 +0,8 @@ | ||
# fill-range [![NPM version](https://badge.fury.io/js/fill-range.svg)](http://badge.fury.io/js/fill-range) [![Build Status](https://travis-ci.org/jonschlinkert/fill-range.svg)](https://travis-ci.org/jonschlinkert/fill-range) | ||
# fill-range [![NPM version](https://img.shields.io/npm/v/fill-range.svg?style=flat)](https://www.npmjs.com/package/fill-range) [![NPM monthly downloads](https://img.shields.io/npm/dm/fill-range.svg?style=flat)](https://npmjs.org/package/fill-range) [![NPM total downloads](https://img.shields.io/npm/dt/fill-range.svg?style=flat)](https://npmjs.org/package/fill-range) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/fill-range.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/fill-range) | ||
> Fill in a range of numbers or letters, optionally passing an increment or multiplier to use. | ||
## Install with [npm](npmjs.org) | ||
Please consider following this project's author, [Jon Schlinkert](https://github.com/jonschlinkert), and consider starring the project to show your :heart: and support. | ||
```bash | ||
npm i fill-range --save | ||
``` | ||
<!-- toc --> | ||
- [Install](#install) | ||
- [Usage](#usage) | ||
@@ -21,12 +16,14 @@ * [Invalid ranges](#invalid-ranges) | ||
+ [question mark](#question-mark) | ||
- [Other useful libs](#other-useful-libs) | ||
- [Running tests](#running-tests) | ||
- [Contributing](#contributing) | ||
- [Author](#author) | ||
- [License](#license) | ||
- [About](#about) | ||
_(Table of contents generated by [verb])_ | ||
_(TOC generated by [verb](https://github.com/verbose/verb) using [markdown-toc](https://github.com/jonschlinkert/markdown-toc))_ | ||
<!-- tocstop --> | ||
## Install | ||
Install with [npm](https://www.npmjs.com/): | ||
```sh | ||
$ npm install --save fill-range | ||
``` | ||
## Usage | ||
@@ -47,12 +44,11 @@ | ||
- `start`: **{String|Number}** the number or letter to start with | ||
- `end`: **{String|Number}** the number or letter to end with | ||
- `step`: **{String|Number}** optionally pass the step to use. works for letters or numbers. | ||
- `options`: **{Object}**: | ||
+ `makeRe`: return a regex-compatible string (still returned as an array for consistency) | ||
+ `step`: pass the step on the options as an alternative to passing it as an argument | ||
+ `silent`: `true` by default, set to false to throw errors for invalid ranges. | ||
- `fn`: **{Function}** optionally [pass a function](#custom-function) to modify each character | ||
* `start`: **{String|Number}** the number or letter to start with | ||
* `end`: **{String|Number}** the number or letter to end with | ||
* `step`: **{String|Number}** optionally pass the step to use. works for letters or numbers. | ||
* `options`: **{Object}**: | ||
- `makeRe`: return a regex-compatible string (still returned as an array for consistency) | ||
- `step`: pass the step on the options as an alternative to passing it as an argument | ||
- `silent`: `true` by default, set to false to throw errors for invalid ranges. | ||
* `fn`: **{Function}** optionally [pass a function](#custom-function) to modify each character | ||
**Examples** | ||
@@ -91,3 +87,3 @@ | ||
When an invalid range is passed, `null` is returned. | ||
When an invalid range is passed, `null` is returned. | ||
@@ -107,3 +103,2 @@ ```js | ||
### Custom function | ||
@@ -133,8 +128,8 @@ | ||
- `+`: repeat the given string `n` times | ||
- `|`: create a regex-ready string, instead of an array | ||
- `>`: join values to single array element | ||
- `?`: randomize the given pattern using [randomatic] | ||
* `+`: repeat the given string `n` times | ||
* `|`: create a regex-ready string, instead of an array | ||
* `>`: join values to single array element | ||
* `?`: randomize the given pattern using [randomatic] | ||
#### plus | ||
#### plus | ||
@@ -227,3 +222,2 @@ Character: _(`+`)_ | ||
#### question mark | ||
@@ -262,36 +256,69 @@ | ||
## Other useful libs | ||
* [micromatch](https://github.com/jonschlinkert/micromatch): Glob matching for javascript/node.js. A drop-in replacement and faster alternative to minimatch and multimatch. Just use `micromatch.isMatch()` instead of `minimatch()`, or use `micromatch()` instead of `multimatch()`. | ||
* [expand-range](https://github.com/jonschlinkert/expand-range): Fast, bash-like range expansion. Expand a range of numbers or letters, uppercase or lowercase. See the benchmarks. Used by micromatch. | ||
* [braces](https://github.com/jonschlinkert/braces): Fastest brace expansion for node.js, with the most complete support for the Bash 4.3 braces specification. | ||
* [is-glob](https://github.com/jonschlinkert/is-glob): Returns `true` if the given string looks like a glob pattern. | ||
## About | ||
## Running tests | ||
Install dev dependencies: | ||
<details> | ||
<summary><strong>Contributing</strong></summary> | ||
```bash | ||
npm i -d && npm test | ||
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new). | ||
</details> | ||
<details> | ||
<summary><strong>Running Tests</strong></summary> | ||
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 && npm test | ||
``` | ||
## Contributing | ||
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/fill-range/issues) | ||
</details> | ||
## Author | ||
<details> | ||
<summary><strong>Building docs</strong></summary> | ||
_(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 | ||
$ npm install -g verbose/verb#dev verb-generate-readme && verb | ||
``` | ||
</details> | ||
### Related projects | ||
You might also be interested in these projects: | ||
* [braces](https://www.npmjs.com/package/braces): Bash-like brace expansion, implemented in JavaScript. Safer than other brace expansion libs, with complete support… [more](https://github.com/micromatch/braces) | [homepage](https://github.com/micromatch/braces "Bash-like brace expansion, implemented in JavaScript. Safer than other brace expansion libs, with complete support for the Bash 4.3 braces specification, without sacrificing speed.") | ||
* [expand-range](https://www.npmjs.com/package/expand-range): Fast, bash-like range expansion. Expand a range of numbers or letters, uppercase or lowercase. Used… [more](https://github.com/jonschlinkert/expand-range) | [homepage](https://github.com/jonschlinkert/expand-range "Fast, bash-like range expansion. Expand a range of numbers or letters, uppercase or lowercase. Used by [micromatch].") | ||
* [is-glob](https://www.npmjs.com/package/is-glob): Returns `true` if the given string looks like a glob pattern or an extglob pattern… [more](https://github.com/jonschlinkert/is-glob) | [homepage](https://github.com/jonschlinkert/is-glob "Returns `true` if the given string looks like a glob pattern or an extglob pattern. This makes it easy to create code that only uses external modules like node-glob when necessary, resulting in much faster code execution and initialization time, and a bet") | ||
* [micromatch](https://www.npmjs.com/package/micromatch): Glob matching for javascript/node.js. A drop-in replacement and faster alternative to minimatch and multimatch. | [homepage](https://github.com/micromatch/micromatch "Glob matching for javascript/node.js. A drop-in replacement and faster alternative to minimatch and multimatch.") | ||
### Contributors | ||
| **Commits** | **Contributor** | | ||
| --- | --- | | ||
| 111 | [jonschlinkert](https://github.com/jonschlinkert) | | ||
| 2 | [paulmillr](https://github.com/paulmillr) | | ||
| 1 | [edorivai](https://github.com/edorivai) | | ||
| 1 | [realityking](https://github.com/realityking) | | ||
| 1 | [wtgtybhertgeghgtwtg](https://github.com/wtgtybhertgeghgtwtg) | | ||
### Author | ||
**Jon Schlinkert** | ||
+ [github/jonschlinkert](https://github.com/jonschlinkert) | ||
+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert) | ||
* [LinkedIn Profile](https://linkedin.com/in/jonschlinkert) | ||
* [GitHub Profile](https://github.com/jonschlinkert) | ||
* [Twitter Profile](https://twitter.com/jonschlinkert) | ||
## License | ||
Copyright (c) 2014-2015 Jon Schlinkert | ||
Released under the MIT license | ||
### License | ||
Copyright © 2018, [Jon Schlinkert](https://github.com/jonschlinkert). | ||
Released under the [MIT License](LICENSE). | ||
*** | ||
_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on April 07, 2015._ | ||
[randomatic]: https://github.com/jonschlinkert/randomatic | ||
[expand-range]: https://github.com/jonschlinkert/expand-range | ||
[micromatch]: https://github.com/jonschlinkert/micromatch | ||
[braces]: https://github.com/jonschlinkert/braces | ||
_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on May 08, 2018._ |
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
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
20197
317
4
+ Addedis-number@4.0.0(transitive)
+ Addedkind-of@6.0.3(transitive)
+ Addedmath-random@1.0.4(transitive)
+ Addedrandomatic@3.1.1(transitive)
- Removedis-number@3.0.0(transitive)
- Removedkind-of@4.0.0(transitive)
- Removedrandomatic@1.1.7(transitive)
Updatedrandomatic@^3.0.0