https://github.com/forceuser/sqnc
https://github.com/forceuser/sqnc
array javascript sequence utility
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/forceuser/sqnc
- Owner: forceuser
- License: mit
- Created: 2017-06-27T16:07:52.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-03-15T05:30:58.000Z (almost 3 years ago)
- Last Synced: 2025-05-21T18:17:05.822Z (9 months ago)
- Topics: array, javascript, sequence, utility
- Language: JavaScript
- Homepage:
- Size: 2.16 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sqnc | [](https://travis-ci.org/forceuser/sqnc) [](https://codecov.io/gh/forceuser/sqnc) [](https://www.npmjs.com/package/sqnc)
Utility for numeric or symbolic seqence generation. Specify range of values, step or custom function to create array with seqence
## Installation
#### Install as npm package
```shell
npm i sqnc --save
```
#### Or simply download \*.js file
[sqnc.js@3.0.8](https://github.com/forceuser/sqnc/releases/download/3.0.8/sqnc.js)
#### Or just load from CDN
```html
```
And then use **sqnc** as global variable
```html
console.log(sqnc("👶", "👰"));
```
## [Documentation](./DOCUMENTATION.md)
## Example
Run example with [runkit](https://npm.runkit.com/sqnc)
```js
const sqnc = require("sqnc");
console.log(sqnc("A", "Z").toArray()); // Alphabet
console.log(sqnc("👶", "👰").toArray()); // Some emojis
console.log(sqnc(25, 0, 5).toArray()); // From 25 to 0 with step 5
console.log(sqnc("☠").toArray(5)); // Make Array(5) of Skull and bones symbol
```