# proses-numgen

> Unique incremental number generator

Latest version **1.1.1** (published 2023-03-20) · ISC license · 0 weekly downloads

## Install

```sh
npm install proses-numgen
pnpm add proses-numgen
yarn add proses-numgen
bun add proses-numgen
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2023-03-20 |
| First published | 2023-01-24 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | vishal acharya |
| Maintainers | vishal.proses |
| Keywords | numgen, fnyear, number, generation |

## Links

- npm: https://www.npmjs.com/package/proses-numgen
- Homepage: https://gitlab.com/vishal2457/proses-numgen.git
- npm.io page: https://npm.io/package/proses-numgen

## 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

- 1.1.1 (latest) — 2023-03-20
- 1.1.0 — 2023-01-24
- 1.0.1 — 2023-01-24
- 1.0.0 — 2023-01-24

## README

# Proses Number generator
Internal lib for generating unique numbers

## Usage
```
import {NumService} from "proses-numgen";

const newNumber = new NumService({value: 'ORD/000001', seperator: '/' }).increment();
// ORD/000002

const newNumber = new NumService({value: 'ORD/000002', seperator: '/' })..decrement();
// ORD/000001

const newNumber = new NumService({value: 'ORD/000001', seperator: '/', upgradePrefix: 'INV' }).increment();
// INV/000002 

const newNumber = new NumService({value: 'ORD/0', seperator: '/', totalLength: 5 }).increment();
// ORD/00001


const newNumber = new NumService({value: 'ORD/0', seperator: '/', pad: 'x', totalLength: 5 }).increment();
// ORD/xxxx1

```

## Contributing
Any changes or suggestions are welcome. Please discuss the changes before hand.

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