Import upstream version 5.4.0+git20210914.1.8658479
Debian Janitor
1 year, 5 months ago
30 | 30 |
console.log(uniqid()); // -> 4n5pxq24kpiob12og9
|
31 | 31 |
console.log(uniqid(), uniqid()); // -> 4n5pxq24kriob12ogd, 4n5pxq24ksiob12ogl
|
32 | 32 |
```
|
|
33 |
|
|
34 |
## Usage in Browser
|
|
35 |
Take advantage of content delivery networks for Prototyping/Mockups
|
|
36 |
```html
|
|
37 |
<!DOCTYPE html>
|
|
38 |
<html lang="en">
|
|
39 |
|
|
40 |
<head>
|
|
41 |
<script src="https://unpkg.com/browse/uniqid@5.5.0/UMD/uniqid.min.js"></script>
|
|
42 |
<script>
|
|
43 |
alert(`Here is an ID: ${uniqid()}`)
|
|
44 |
</script>
|
|
45 |
|
|
46 |
<title>Your App</title>
|
|
47 |
</head>
|
|
48 |
|
|
49 |
<body>
|
|
50 |
|
|
51 |
</body>
|
|
52 |
|
|
53 |
</html>
|
|
54 |
```
|
|
55 |
|
|
56 |
|
33 | 57 |
|
34 | 58 |
## Features
|
35 | 59 |
|
0 | 0 |
{
|
1 | 1 |
"name": "uniqid",
|
2 | |
"version": "5.4.0",
|
|
2 |
"version": "5.3.0",
|
3 | 3 |
"description": "Unique ID Generator",
|
4 | 4 |
"homepage": "http://github.com/adamhalasz/uniqid/",
|
5 | 5 |
"keywords": [
|
|
27 | 27 |
},
|
28 | 28 |
"main": "index.js",
|
29 | 29 |
"dependencies": {},
|
30 | |
"devDependencies": {}
|
|
30 |
"devDependencies": {
|
|
31 |
"webpack": "^5.52.0",
|
|
32 |
"webpack-cli": "^4.8.0"
|
|
33 |
},
|
|
34 |
"scripts":{
|
|
35 |
"build":"webpack"
|
|
36 |
}
|
31 | 37 |
}
|