https://github.com/ricomeetsworld/naniteid
A random string generator to produce unique IDs
https://github.com/ricomeetsworld/naniteid
id idgenerator
Last synced: about 1 year ago
JSON representation
A random string generator to produce unique IDs
- Host: GitHub
- URL: https://github.com/ricomeetsworld/naniteid
- Owner: ricomeetsworld
- License: mit
- Created: 2022-10-27T17:37:51.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-10-27T19:07:10.000Z (over 3 years ago)
- Last Synced: 2025-02-12T23:18:11.464Z (over 1 year ago)
- Topics: id, idgenerator
- Language: TypeScript
- Homepage:
- Size: 127 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @0xreeko/naniteId
A random string generator to produce text that can be used as unique IDs. Great for creating IDs when mapping over objects and giving them unique values in the `key` prop.
**How to install**
```
npm i naniteid
```
**How to use**
```jsx
import { naniteId } from '@0xreeko/naniteId'
let proxy = [
{
id: naniteId(),
fullName: 'Leonis V',
course: 'Software Engineering',
},
{
id: naniteId(),
fullName: 'Enrique V',
course: 'Triple Sciences',
},
{
id: naniteId(),
fullName: 'Zancus V',
course: "Latin",
},
];
console.log(proxy.forEach(item => console.log(item.id)));
// x6xks84ss4c
// 3afn08cdobi
// gftevuudlsp
```