Daniel Hübleitner 615619e6e7 start werk | 5 anos atrás | |
---|---|---|
.. | ||
test | 5 anos atrás | |
.travis.yml | 5 anos atrás | |
LICENSE | 5 anos atrás | |
README.md | 5 anos atrás | |
index.js | 5 anos atrás | |
package.json | 5 anos atrás |
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.