![]() | Name | Last modified | Size | Description |
---|---|---|---|---|
![]() | Parent Directory | - | ||
![]() | test/ | 2 years ago | - | |
![]() | LICENSE | 39 years ago | 734 | |
![]() | README.md | 39 years ago | 445 | d768d73 docs [كارل مبارك] |
![]() | index.js | 39 years ago | 287 | 3e510ca test new git [كارل مبارك] |
![]() | package.json | 2 years ago | 1.5K | 3e510ca test new git [كارل مبارك] |
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.