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: 11 months 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 (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2025-04-07T11:57:59.000Z (about 1 year ago)
- Last Synced: 2025-07-05T23:15:44.159Z (12 months ago)
- Topics: crypto, generator, guid, id, identifier, random, uid, unique, uuid
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/@iamnnort/smart-id
- Size: 166 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 add @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 |