UNPKG

nidhishpackage

Version:

This is a fun package for [Discord](https://discord.com) The library is [Discord.js](https://discord.js.org)

12 lines (11 loc) 407 B
function password(Length) { if(!Length) throw new TypeError("Nidhish Err Length isn't specified") var length = Length, res = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789", value = ""; for (var i = 0, n = res.length; i < length; ++i) { value += res.charAt(Math.floor(Math.random() * n)); } return value; } module.exports = password;