# @brightslides/id-generator

> Unique id generator

Latest version **0.0.1** (published 2019-02-23) · ISC license · 0 weekly downloads

## Install

```sh
npm install @brightslides/id-generator
pnpm add @brightslides/id-generator
yarn add @brightslides/id-generator
bun add @brightslides/id-generator
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2019-02-23 |
| First published | 2019-02-23 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 3.6 KB |
| Known vulnerabilities | 0 (+3 in 1 direct dependencies) |
| Install scripts | no |
| Author | Tamas Pap |
| Maintainers | negreamihneavlad, tamas-pap |
| Keywords | unique, string, id, nanoid |

## Links

- npm: https://www.npmjs.com/package/@brightslides/id-generator
- Repository: https://gitlab.com/brightslides/id-generator
- Homepage: https://gitlab.com/brightslides/id-generator#readme
- Issues: https://gitlab.com/brightslides/id-generator/issues
- npm.io page: https://npm.io/package/@brightslides/id-generator

## Dependencies (2)

- [nanoid](https://npm.io/package/nanoid.md) ^2.0.1
- [hashids](https://npm.io/package/hashids.md) ^1.2.2

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 0.0.1 (latest) — 2019-02-23

## README

# Unique id generator

A unique string generator for Javascript based on [nanoid](https://github.com/ai/nanoid).

## Install via npm
```
npm install @brightslides/uid --save
```

## Usage
```js
const {uid, Sequence} = require('@brightslides/uid');

// Generate a 25 character long unique id
const id = uid();

// Generate multiple sequential ids
const sequence = Sequence.create();
const id1 = sequence.uid();
const id2 = sequence.uid();

// Generate multiple sequential ids based on another id
const baseId = uid();
const sequence = Sequence.from(baseId);
const id1 = sequence.uid();
const id2 = sequence.uid();
```

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