Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

expand-range

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

expand-range - npm Package Compare versions

Comparing version 0.3.1 to 1.0.0

LICENSE

2

index.js
/*!
* 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
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc