Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F4499489
nanoid.cjs
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
294 B
Referenced Files
None
Subscribers
None
nanoid.cjs
View Options
let alphabet = 'useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict';
function nanoid(size) {
let id = '';
const randomBytes = crypto.randomBytes(size);
for (let i = 0; i < size; i++) {
id += alphabet[63 & randomBytes[i]];
}
return id;
}
console.log(nanoid(21));
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, May 3, 8:02 AM (1 d, 21 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
518202
Default Alt Text
nanoid.cjs (294 B)
Attached To
Mode
rANT Ant
Attached
Detach File
Event Timeline
Log In to Comment