source: node_modules/unique-slug/README.md@ 62b2964

finki-main main
Last change on this file since 62b2964 was 81bc7da, checked in by Klimentina Efremova <klimentina08642@…>, 3 months ago

Initial commit

  • Property mode set to 100644
File size: 445 bytes
Line 
1unique-slug
2===========
3
4Generate a unique character string suitible for use in files and URLs.
5
6```
7var uniqueSlug = require('unique-slug')
8
9var randomSlug = uniqueSlug()
10var fileSlug = uniqueSlug('/etc/passwd')
11```
12
13### uniqueSlug(*str*) → String (8 chars)
14
15If *str* is passed in then the return value will be its murmur hash in
16hex.
17
18If *str* is not passed in, it will be 4 randomly generated bytes
19converted into 8 hexadecimal characters.
Note: See TracBrowser for help on using the repository browser.