Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kartikesingh/create-id
generate random id?
https://github.com/kartikesingh/create-id
Last synced: 24 days ago
JSON representation
generate random id?
- Host: GitHub
- URL: https://github.com/kartikesingh/create-id
- Owner: KartikeSingh
- License: mit
- Created: 2021-10-18T07:25:20.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2024-06-15T11:55:50.000Z (7 months ago)
- Last Synced: 2024-06-15T12:59:21.706Z (7 months ago)
- Language: JavaScript
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Installation
```
npm i create-id
```# What is it?
An module to create random IDs# Why?
- Fast
- Customizable# How do i use it?
```js
// Importing for Node JS
import { randomId } from 'create-random-id';// 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/J6GmRfgBvE) or create a issue [here](https://github.com/KartikeSingh/create-id/issues).