smartrange

1.0.5 • Public • Published

SmartRange

SmartRange returns an array of numbers within a given range.

Usage

From NPM

const range = require("smartrange");

From a local file (GitHub)

const range = require("./index.js");
const start = 10; // Start number (inclusive)
const end = 1000 // End number (inclusive)
const myRange = range.createNewRange(start, end);
console.log(myRange);
// Expected: [10, 11, 12, ..., 998, 999, 1000]

Changelog

1.0.5 - Added function support, removed class support, modified README
1.0.4 - Minor README changes
1.0.3 - Minor README changes
1.0.2 - Removed 65536 limit, added changelog to README, announced function support
1.0.1 - Minor README changes
1.0.0 - Initial release

Readme

Keywords

none

Package Sidebar

Install

npm i smartrange

Weekly Downloads

0

Version

1.0.5

License

Unlicense

Unpacked Size

3.55 kB

Total Files

4

Last publish

Collaborators

  • wengiel