idchunk 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +25 -0
- package/package.json +2 -2
package/README.md
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# ⚡ idchunk — A Tiny, Fast & Customizable ID Generator
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/idchunk)
|
|
4
|
+
[](https://www.npmjs.com/package/idchunk)
|
|
5
|
+
[](https://github.com/garvthakral/idchunk/blob/main/LICENSE)
|
|
6
|
+
|
|
7
|
+
> Generate short, unique, and customizable IDs for your applications in milliseconds.
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## Installation & Usage
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
npm install idchunk
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
By default the random generate id length is 10
|
|
18
|
+
|
|
19
|
+
```
|
|
20
|
+
const idchunk = require("idchunk");
|
|
21
|
+
|
|
22
|
+
console.log(idchunk());
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
And you can pass the value as the arguement to the idchunk(length) in number to generate the id
|
package/package.json
CHANGED