Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/callumacrae/nums
:one: :two: :three: nums(3, 6) => [3, 4, 5, 6]
https://github.com/callumacrae/nums
Last synced: 20 days ago
JSON representation
:one: :two: :three: nums(3, 6) => [3, 4, 5, 6]
- Host: GitHub
- URL: https://github.com/callumacrae/nums
- Owner: callumacrae
- Created: 2015-01-15T16:46:47.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-02-05T14:04:23.000Z (almost 10 years ago)
- Last Synced: 2024-12-17T05:29:27.525Z (23 days ago)
- Language: JavaScript
- Homepage:
- Size: 117 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# nums [![Build Status](https://travis-ci.org/callumacrae/nums.svg)](https://travis-ci.org/callumacrae/nums)
A JavaScript library to generate an array of increasingly large or small
numbers.If you found this library through Google, well done.
## Install
```
$ npm install --save nums
```## Usage
```js
var nums = require('nums');nums(5);
//=> [1, 2, 3, 4, 5]nums(5, 10);
//=> [5, 6, 7, 8, 9, 10]nums(3, -2);
//=> [3, 2, 1, 0, -1, -2]
```## License
Released under the MIT license.