Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iamnnort/smart-id
ID generator for Node.js - Unique - Smart - Short
https://github.com/iamnnort/smart-id
crypto generator guid id identifier random uid unique uuid
Last synced: 10 days ago
JSON representation
ID generator for Node.js - Unique - Smart - Short
- Host: GitHub
- URL: https://github.com/iamnnort/smart-id
- Owner: iamnnort
- License: other
- Created: 2023-09-25T12:14:37.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-11T22:43:59.000Z (about 1 month ago)
- Last Synced: 2024-10-11T22:45:15.137Z (about 1 month ago)
- Topics: crypto, generator, guid, id, identifier, random, uid, unique, uuid
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/@iamnnort/smart-id
- Size: 77.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.dm
- Security: SECURITY.md
Awesome Lists containing this project
README
## Info
ID generator for Node.js - Unique - Smart - Short.
## Installation
```bash
yarn install @iamnnort/smart-id
```## Usage
```javascript
import { generate } from "@iamnnort/smart-id";console.log(generate()); // AmLXmSwfJmUxoTbP
console.log(generate({ prefix: "cli" })); // cli_0Y3xbmodn37AUQkx
console.log(generate({ prefix: "cli", size: 32 })); // cli_Yhar8gzYEiU2Buf5dse3ZxBCI9Zr9VYg
```## Parameters
| Parameter | Description |
| --------- | ---------------------- |
| `prefix` | Group or entity prefix |
| `size` | Hash length |