{"_id":"@am-77/p-gen","_rev":"2-198b9ee5e143796d758f7b042179e3f4","name":"@am-77/p-gen","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@am-77/p-gen","version":"1.0.0","description":"A customizable javascript password generator.","main":"index.js","keywords":["javascript","password-genertor","node.js"],"author":{"name":"AM-77"},"license":"MIT","gitHead":"5a9501a74f0371beeca22a861cc1381eaf836a30","_id":"@am-77/p-gen@1.0.0","_nodeVersion":"13.7.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-JUhl3j/1eRaqxZj1mGBfUChl/X47XiZCL4gjUrp01uoz+vZAc8GvHw0Vl3+/qpVa7ywi84SHC9Cd5K9MKD2Ttg==","shasum":"018b25a927265f290aa5c2dbd869fa9ab5b428d5","tarball":"https://registry.npmjs.org/@am-77/p-gen/-/p-gen-1.0.0.tgz","fileCount":3,"unpackedSize":9245,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfAVIPCRA9TVsSAnZWagAADlYQAJV31+1RzUNRUuj+aSFT\nuM+KpZnn9DuvHsz/NIaIvohYZS6unYckfmkZvgSW8A4l8y/0/uaw+Iha51hC\nNGGz4TWSJoZIHlIaO+DNe3S/j78TT4COomhD76J4QEloc24I7rDfQeT1xF5l\nK8qTD9O5w2Z6l41Yh6b2FKItqTS8JyygRcn+jLpiClRHK1j87OnnLYfXVEbL\n6ypSjmwwl/XrHtX/n4tS9qaut/TbnQvt0XkCX32edniib7nxcj9QkPa6H/0H\n45G3jwSIdX53jojidYOiSb9ys6LbnnlOtK1zi4SqyVK7SF4lHpkBuBmmeoDE\nARpZ+lgw1FHBGZZ0vHeoI5H2Z8eNrqJlbeEhc2kkhWmn7i6oZ7tqW+DK5HKr\nM5qPpSrklJvugXt/JeAEC88RVH5PNN1C0PmLFTGMDSQPl0z1VrjcNXrG/Nrd\ns9paU3dCqlB9/nSd8JfTapCTKCE92BnZbUMoUMlOSNgnxcxNZnXn3XyU9i93\ng3Rc5FNoN56Oqu33NymR3WkkXNWv6MAVPaas2DbAjlyxE1O9tcLkjC//4WFq\nl1JSpSNDARwe+D4dwOZHEzt6uzlHof316EPfKApZ4ArmP9dbQKt9uyD+7z07\nT2aw2PB8aX5tln66Eclgks+XYccGy7F5j8p5nNl8IDoghfO906bU4D6Io3yy\nIVgU\r\n=mA4/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCaz/po9OxwzUWXaWpOYNLKiRe8SXEXiH1N7MN6ahd5fgIhAJpVqWEwyf6I9Jl4xDlz8mvQvy5lz97kPLTwpEjxAWZ6"}]},"maintainers":[{"name":"am-77","email":"amine.griche77@protonmail.ch"}],"_npmUser":{"name":"am-77","email":"amine.griche77@protonmail.ch"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/p-gen_1.0.0_1593922062952_0.7974443572894983"},"_hasShrinkwrap":false},"1.0.1":{"name":"@am-77/p-gen","version":"1.0.1","description":"A customizable javascript password generator.","main":"index.js","keywords":["javascript","password-genertor","node.js"],"author":{"name":"AM-77"},"license":"MIT","gitHead":"42e266154456a085e54e56c29b552dd8ef7330ec","_id":"@am-77/p-gen@1.0.1","_nodeVersion":"13.7.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-uEmkdSS6RPouhazeIZbBIC+vfSWN3x7MMGrVhISHuy/W2Jwn1t4SqrxAsfDhSHu3uEq0nwUvaRggDq516WtJCQ==","shasum":"b2cb219a4cd709ed6dbb472b8eb634c3ac7dff4f","tarball":"https://registry.npmjs.org/@am-77/p-gen/-/p-gen-1.0.1.tgz","fileCount":3,"unpackedSize":9242,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfAVWHCRA9TVsSAnZWagAAY84P/2J3Sis85nq5KYX1zM+7\nSei6yT8pVYHl6ThBiNoO6sWHXtEbjwnNtRBtCrPm/bfP2xQzCUgSsn9xLkOR\na6oBoaL5pTH7OGFDksmH+ncb+pzfmWuT0m8FKz1lcZnay+T+KTLoqlTFjM9X\nAZTD86Xbmfl/DsQ9hK2J48ZHgZTL/XU/IyNORQQOGjtDvDLwkxuzw/8XWbzv\nEPFXHoOJsfh+eS/hUopViYWZDo0/eDZ7v6ALiBwyw6kE/wH88iYyf8LY0S0i\nnvbyX+YYtJ3sLJTY8jw456jJgII5yt2TyLlou4wh7TUaPnSDg2Kf3JCm8bVY\n/ZNaBSeVZXyqdbhqFezJDnR7XVWrFQBDr7qqVvNp8TWiPdVP/w0OsSla1Phn\njC+7IrhFchytneqcvcebsZ4j3N/WNUn9O9jXo9Ko/dTwe1b4VowBsadScsbH\nudPz2/n9jQi5ujaC0zwE9fc1H3A3jbuhDx0/OR8hSKu011iRCX2kRLt0XAzw\nLxdNiXrBvI9DJ3mNonn6XD7jDQvpc+xTjPzdt2jZ4VgWstVHp7m2yiLOu5dl\nJJwk5ncXeFBeE2SnDD2tUgTeeKK9ageDj2vFAx2g2gwlwvFUBweQuD6txp41\nvmpVOUe3VIv3bxshn6BikYWPLrGREG4G2jk1R22F8XzENN3sc4xEa5Sy9Bv+\nRnoy\r\n=50f5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAodnlWrC4OkkCLFZKj5mZvr0PkmLdH7+mpdfCA7EEu4AiAPhwBbs5nFyykIMuIJyX7vcPEOot2UV8Bzopzne+12Aw=="}]},"maintainers":[{"name":"am-77","email":"amine.griche77@protonmail.ch"}],"_npmUser":{"name":"am-77","email":"amine.griche77@protonmail.ch"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/p-gen_1.0.1_1593922951560_0.21981389116949468"},"_hasShrinkwrap":false}},"time":{"created":"2020-07-05T04:07:42.919Z","1.0.0":"2020-07-05T04:07:43.164Z","modified":"2022-04-04T13:42:27.207Z","1.0.1":"2020-07-05T04:22:31.674Z"},"maintainers":[{"name":"am-77","email":"amine.griche77@protonmail.ch"}],"description":"A customizable javascript password generator.","keywords":["javascript","password-genertor","node.js"],"author":{"name":"AM-77"},"license":"MIT","readme":"# p-gen\n\nA customizable javascript password generator.\n\n# How to use\n\n## In the browser\n\n### Insert the p-gen.js file in the html\n\nDownload the p-gen.js file from [HERE](https://raw.githubusercontent.com/AM-77/p-gen/master/p-gen.js) \n\n```html\n<script src=\"./p-gen.js\"></script>\n```\n\n**or**\n\nInsert it directly from gtihub\n\n```html\n<script defer src=\"https://raw.githubusercontent.com/AM-77/p-gen/master/p-gen.js\"></script>\n```\n\n\n### Use it\n\n```javascript\n// create an instance of pGen Class\nlet pgen = new pGen()\n\n// use the instance to access the pGen methods\nlet password = pgen.generatePassword(true, true, true, true, 12)\n```\n\n## In node\n\n### Install the p-gen module\n\n```bash\nnpm i @am-77/p-gen\n```\n\n**or**\n\n```bash\nyarn add @am-77/p-gen\n```\n\n###  Use it\n\n```javascript\nconst pGen = require(\"@am-77/p-gen\")\nlet pgen = new pGen()\n\nlet password = pgen.generatePassword(true, true, true, true, 12)\n```\n\n## Available Methods\n\n- `generatePassword(lowercase:optional = true, uppercase:optional = true, numbers:optional = true, symbols:optional = true, length:optional = 12)`\n    - lowercase : set it to `true` if the password should contains lowercase or `false` otherwise, `true` by default.\n    - uppercase : set it to `true` if the password should contains uppercase or `false` otherwise, `true` by default.\n    - numbers : set it to `true` if the password should contains numbers or `false` otherwise, `true` by default.\n    - symbols : set it to `true` if the password should contains symbols or `false` otherwise, `true` by default.\n    - length : the length of the password equals 12 by default \n    \n- `generatePasswordWithChars(chars, length:optional = 12)`\n    - chars : a string of the characters that must be used to generate the password.\n    - length : the length of the password equals 12 by default \n\n- `generateLowercase(length)`\n- `generateUppercase(length)`\n- `generateNumbers(length)`\n- `generateSymbols(length)`\n\n\n## Demo\n\nYou can check the live demo here : [p-gen Demo](https://p-gen.vercel.app)\n\n## Contribution\n\nFeel free to raise an [issue](https://github.com/AM-77/p-gen/issues) or submit a [pull request](https://github.com/AM-77/p-gen/pulls).\n\n## Copyright and license\n\nCode copyright 2019 AM-77. Code released under [the MIT license](https://github.com/AM-77/p-gen/blob/master/LICENSE).","readmeFilename":"README.md"}