@bramus/range
Advanced tools
Comparing version 1.0.1 to 1.1.0
{ | ||
"name": "@bramus/range", | ||
"version": "1.0.1", | ||
"version": "1.1.0", | ||
"description": "Create an array containing a range of elements (cfr. PHP's range)", | ||
@@ -11,3 +11,3 @@ "type": "module", | ||
"prepublish": "npm run build", | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
"test": "mocha" | ||
}, | ||
@@ -35,4 +35,5 @@ "repository": { | ||
"devDependencies": { | ||
"esbuild": "^0.14" | ||
"esbuild": "^0.14", | ||
"mocha": "^9.1.3" | ||
} | ||
} |
@@ -16,12 +16,14 @@ # Range | ||
// [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12] | ||
const r1 = range(0, 12); | ||
// ~> [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12] | ||
// [7, 8, 9, 10, 11, 12] | ||
const r2 = range(7,12); | ||
const r2 = range(7, 12); | ||
// ~> [7, 8, 9, 10, 11, 12] | ||
// [0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100] | ||
const r3 = range(0, 100, 10); | ||
// ~> [0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100] | ||
``` | ||
🔗 Try it out online in the playground: [https://codepen.io/bramus/pen/dyVMPxV](https://codepen.io/bramus/pen/dyVMPxV) | ||
## API | ||
@@ -28,0 +30,0 @@ |
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
6888
6
110
0
49
0
2