Server IP : 66.29.132.122 / Your IP : 3.144.6.223 Web Server : LiteSpeed System : Linux business142.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : admazpex ( 531) PHP Version : 7.2.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/alt/alt-nodejs14/root/usr/lib/node_modules/npm/node_modules.bundled/unique-slug/ |
Upload File : |
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 bytes coverted into 8 hex characters, generated by `crypto.pseudoRandomBytes`.