Files
NapCatQQ/.pnpm-store/v3/files/4c/0274f8bfea3f4acfa843ade03a5128e31da58e6c5fbc7c281370aa84f9654a41cd8371398f9bcdeed63105e0595b231cace36137ade004fbada8f24f70838e
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

20 lines
445 B
Plaintext

unique-slug
===========
Generate a unique character string suitible for use in files and URLs.
```
var uniqueSlug = require('unique-slug')
var randomSlug = uniqueSlug()
var fileSlug = uniqueSlug('/etc/passwd')
```
### uniqueSlug(*str*) → String (8 chars)
If *str* is passed in then the return value will be its murmur hash in
hex.
If *str* is not passed in, it will be 4 randomly generated bytes
converted into 8 hexadecimal characters.