+12
-0
| /** | ||
| * A tiny, secure, URL-friendly, unique string ID generator for JavaScript | ||
| * with hardware random generator. | ||
| * | ||
| * ```js | ||
| * import { nanoid } from 'nanoid' | ||
| * model.id = nanoid() //=> "V1StGXR8_Z5jdHi6B-myT" | ||
| * ``` | ||
| * | ||
| * @module | ||
| */ | ||
| /** | ||
| * Generate secure URL-friendly unique ID. | ||
@@ -3,0 +15,0 @@ * |
| /** | ||
| * By default, Nano ID uses hardware random bytes generation for security | ||
| * and low collision probability. If you are not so concerned with security, | ||
| * you can use it for environments without hardware random generators. | ||
| * | ||
| * ```js | ||
| * import { nanoid } from 'nanoid/non-secure' | ||
| * const id = nanoid() //=> "Uakgb_J5m9g-0JDMbcJqLJ" | ||
| * ``` | ||
| * | ||
| * @module | ||
| */ | ||
| /** | ||
| * Generate URL-friendly unique ID. This method uses the non-secure | ||
@@ -3,0 +16,0 @@ * predictable random generator with bigger collision probability. |
+0
-12
| /* @ts-self-types="./index.d.ts" */ | ||
| /** | ||
| * By default, Nano ID uses hardware random bytes generation for security | ||
| * and low collision probability. If you are not so concerned with security, | ||
| * you can use it for environments without hardware random generators. | ||
| * | ||
| * ```js | ||
| * import { nanoid } from 'nanoid/non-secure' | ||
| * const id = nanoid() | ||
| * ``` | ||
| * | ||
| * @module | ||
| */ | ||
| let urlAlphabet = | ||
@@ -15,0 +3,0 @@ 'useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict' |
+1
-1
| { | ||
| "name": "nanoid", | ||
| "version": "5.1.1", | ||
| "version": "5.1.2", | ||
| "description": "A tiny (118 bytes), secure URL-friendly unique string ID generator", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
12099
2.28%290
3.94%