![]() | Name | Last modified | Size | Description |
---|---|---|---|---|
![]() | Parent Directory | - | ||
![]() | lib/ | a year ago | - | |
![]() | LICENSE | a year ago | 734 | |
![]() | README.md | a year ago | 445 | 595aea1 more query options + view options [كارل مبارك] |
![]() | package.json | a year ago | 1.1K | afd0ccc remove unused [كارل مبارك] |
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')
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.