# create-random-id

> Create random ids.

Latest version **1.0.0** (published 2021-10-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install create-random-id
pnpm add create-random-id
yarn add create-random-id
bun add create-random-id
```

## Health

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

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

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2021-10-18 |
| First published | 2021-10-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Shisui |
| Maintainers | shisui |
| Keywords | create, random, id |

## Links

- npm: https://www.npmjs.com/package/create-random-id
- npm.io page: https://npm.io/package/create-random-id

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

- 1.0.0 (latest) — 2021-10-18
- 2.0.0-beta.0 (beta) — 2024-06-15

## README

# Installations
```
npm i create-id
```

# What ?
An module to create random IDs

# Why ?
- Fast
- Customizable

# How ?

```js
// Importing for Node JS
const { randomID } = require('create-id');
import { randomID } from 'create-id'; // for typescript

// filters
const length = 18; // length of the id
const type = "letter" || ["letter", "number","symbol"]; // types of symbol to use for our id

// Create a random ID
const id = randomID();
const id2 = randomID(length, type);
```

# Support
for support or issues or queries contace me on my [discord server](https://discord.gg/XYnMTQNTFh) or create a issue [here](https://github.com/KartikeSingh/create-id/issues).

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