# numseq

> A simple integer number sequence generator.

Latest version **0.2.2** (published 2018-06-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install numseq
pnpm add numseq
yarn add numseq
bun add numseq
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.2 |
| Published | 2018-06-21 |
| First published | 2016-11-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 8.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Joe Fallon |
| Maintainers | joefallon |
| Keywords | number-sequence |

## Links

- npm: https://www.npmjs.com/package/numseq
- Repository: https://github.com/joefallon/numseq
- Homepage: https://github.com/joefallon/numseq#readme
- Issues: https://github.com/joefallon/numseq/issues
- npm.io page: https://npm.io/package/numseq

## Dependencies (1)

- [tslib](https://npm.io/package/tslib.md) ^1.9.2

## Alternatives

- [random-seedable](https://npm.io/package/random-seedable.md) — 27.9K weekly downloads
- [n2words](https://npm.io/package/n2words.md) — 22.2K weekly downloads
- [@stdlib/math-base-special-factorialln](https://npm.io/package/@stdlib/math-base-special-factorialln.md) — 5.7K weekly downloads
- [@stdlib/math-base-special-abs2](https://npm.io/package/@stdlib/math-base-special-abs2.md) — 1.7K weekly downloads
- [commons-math-interpolation](https://npm.io/package/commons-math-interpolation.md) — 1.4K weekly downloads

## Recent versions

- 0.2.2 (latest) — 2018-06-21
- 0.2.1 — 2018-03-08
- 0.2.0 — 2017-10-11
- 0.1.1 — 2017-04-24
- 0.1.0 — 2016-11-11

## README

numseq
======
By [Joe Fallon](http://blog.joefallon.net)

> **A simple integer number sequence generator.**

Installation
------------
The easiest way to install `numseq` is with npm. 

```
npm install numseq --save-dev
```

NumSeq
------

`Numseq` is a simple class written in TypeScript that returns the 
next integer each time `#next` is called. The integer sequence 
starts at one (1). This class is perfect for ensuring the rows in a
database have unique values during testing.

### Features

`Numseq` has the following features and benefits:

*   Full suite of unit tests.
*   It can be integrated into any existing project.
*   Can be fully understood in just a few moments.
*   Written in TypeScript.
*   Extremely fast.

### Class Functions

```typescript
public static next(): number;  // get the next integer
public static reset();         // reset the sequence
```

---
_Source: https://npm.io/package/numseq · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
