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 1.0.0 to 1.1.0

19

index.js

@@ -18,3 +18,20 @@ /*!

var args = str.split('..');
if (args.length <= 1) {
var len = args.length;
var makeRe;
if (typeof fn === 'boolean') {
makeRe = fn;
fn = null;
}
if (len === 2 && makeRe) {
return ['[' + args.join('-') + ']'];
}
if (len === 3 && makeRe) {
args[2] = args[2] + '|';
return fill.apply(fill, args);
}
if (len <= 1) {
return [str];

@@ -21,0 +38,0 @@ }

13

package.json
{
"name": "expand-range",
"description": "Faster, bash-like range expansion. Expand a range of numbers or letters, uppercase or lowercase. See the benchmarks.",
"version": "1.0.0",
"description": "Fast, bash-like range expansion. Expand a range of numbers or letters, uppercase or lowercase. See the benchmarks. Used by micromatch.",
"version": "1.1.0",
"homepage": "https://github.com/jonschlinkert/expand-range",

@@ -26,8 +26,6 @@ "author": {

"scripts": {
"test": "mocha -R spec",
"docs": "update && license && npmignore && deps && verb",
"all": "npm run test && npm run docs"
"test": "mocha -R spec"
},
"dependencies": {
"fill-range": "^1.0.0"
"fill-range": "^1.3.0"
},

@@ -38,2 +36,3 @@ "devDependencies": {

"glob": "^4.3.2",
"minimatch": "^2.0.1",
"mocha": "*",

@@ -59,2 +58,2 @@ "should": "^4.1.0"

]
}
}
# expand-range [![NPM version](https://badge.fury.io/js/expand-range.svg)](http://badge.fury.io/js/expand-range)
> Faster, bash-like range expansion. Expand a range of numbers or letters, uppercase or lowercase. See the benchmarks.
> Fast, bash-like range expansion. Expand a range of numbers or letters, uppercase or lowercase. See the benchmarks. Used by micromatch.

@@ -106,4 +106,4 @@ ## Install with [npm](npmjs.org)

_This file was generated by [verb](https://github.com/assemble/verb) on January 04, 2015._
_This file was generated by [verb](https://github.com/assemble/verb) on January 11, 2015._
[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