expand-range
Advanced tools
Comparing version 0.3.1 to 1.0.0
/*! | ||
* expand-range <https://github.com/jonschlinkert/expand-range> | ||
* | ||
* Copyright (c) 2014 Jon Schlinkert, contributors. | ||
* Copyright (c) 2014-2015, Jon Schlinkert. | ||
* Licensed under the MIT license. | ||
@@ -6,0 +6,0 @@ */ |
{ | ||
"name": "expand-range", | ||
"description": "Faster, bash-like range expansion. Expand a range of numbers or letters, uppercase or lowercase. See the benchmarks.", | ||
"version": "0.3.1", | ||
"version": "1.0.0", | ||
"homepage": "https://github.com/jonschlinkert/expand-range", | ||
@@ -17,8 +17,6 @@ "author": { | ||
}, | ||
"licenses": [ | ||
{ | ||
"type": "MIT", | ||
"url": "https://github.com/jonschlinkert/expand-range/blob/master/LICENSE-MIT" | ||
} | ||
], | ||
"license": { | ||
"type": "MIT", | ||
"url": "https://github.com/jonschlinkert/expand-range/blob/master/LICENSE-MIT" | ||
}, | ||
"main": "index.js", | ||
@@ -29,11 +27,13 @@ "engines": { | ||
"scripts": { | ||
"test": "mocha -R spec" | ||
"test": "mocha -R spec", | ||
"docs": "update && license && npmignore && deps && verb", | ||
"all": "npm run test && npm run docs" | ||
}, | ||
"dependencies": { | ||
"fill-range": "^0.2.0" | ||
"fill-range": "^1.0.0" | ||
}, | ||
"devDependencies": { | ||
"benchmarked": "^0.1.1", | ||
"brace-expansion": "0.0.0", | ||
"glob": "^4.0.6", | ||
"brace-expansion": "^1.1.0", | ||
"glob": "^4.3.2", | ||
"mocha": "*", | ||
@@ -40,0 +40,0 @@ "should": "^4.1.0" |
@@ -11,3 +11,5 @@ # expand-range [![NPM version](https://badge.fury.io/js/expand-range.svg)](http://badge.fury.io/js/expand-range) | ||
Wraps [fill-range] to do range expansion using `..` separated strings. See [fill-range] for the full list of options and features. | ||
## Benchmarks | ||
@@ -70,7 +72,7 @@ | ||
Optionally pass a custom function as the third or fourth argument: | ||
Optionally pass a custom function as the second argument: | ||
```js | ||
expand('a..e', function (val, isLetter, i) { | ||
if (isLetter) { | ||
expand('a..e', function (val, isNumber, pad, i) { | ||
if (!isNumber) { | ||
return String.fromCharCode(val) + i; | ||
@@ -101,3 +103,3 @@ } | ||
## License | ||
Copyright (c) 2014 Jon Schlinkert | ||
Copyright (c) 2015 Jon Schlinkert | ||
Released under the MIT license | ||
@@ -107,5 +109,4 @@ | ||
_This file was generated by [verb](https://github.com/assemble/verb) on December 14, 2014. To update, run `npm i -g verb && verb`._ | ||
_This file was generated by [verb](https://github.com/assemble/verb) on January 04, 2015._ | ||
[unicode]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/fromCharCode | ||
[fill-range]: https://github.com/jonschlinkert/fill-range |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
0
108
4980
4
+ Addedfill-range@1.9.0(transitive)
+ Addedis-buffer@1.1.6(transitive)
+ Addedis-number@1.1.23.0.0(transitive)
+ Addedisobject@0.2.0(transitive)
+ Addedkind-of@3.2.2(transitive)
+ Addedrandomatic@1.1.7(transitive)
+ Addedrepeat-element@1.1.4(transitive)
+ Addedrepeat-string@1.6.1(transitive)
- Removedalphabet@0.1.0(transitive)
- Removedfill-range@0.2.0(transitive)
- Removedis-number@0.1.1(transitive)
Updatedfill-range@^1.0.0