{"_id":"@achaljhawar/password-generator","name":"@achaljhawar/password-generator","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@achaljhawar/password-generator","version":"1.0.0","description":"A npm package that generates random passwords with specified length and complexity.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["password","generator","random"],"author":{"name":"Achal Jhawar"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/achaljhawar/password-generator.git"},"bugs":{"url":"https://github.com/achaljhawar/password-generator/issues"},"homepage":"https://github.com/achaljhawar/password-generator#readme","gitHead":"60cf327b21cd162bac4da1819074c3eaf36d7823","_id":"@achaljhawar/password-generator@1.0.0","_nodeVersion":"17.0.1","_npmVersion":"8.1.0","dist":{"integrity":"sha512-8+Xz0BWFP4uvOFdag1OFN8jfnAdZM26wgfQYrZRiI4Stvj7IVQcH5jbUdj57oVpBxJ0sjdiTfAEkUUjNiN55nA==","shasum":"ca8f09623ad5095c09defd44151492dab0e35966","tarball":"https://registry.npmjs.org/@achaljhawar/password-generator/-/password-generator-1.0.0.tgz","fileCount":4,"unpackedSize":4618,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH/dxDMd+3dIHNaeNsqtKg4PU+j3oKlH9GTKwUZpuH4YAiEAugQSsVet0K76bCNuD36c1zXUA1PaRKsxROw+RRs1l/c="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkNrGUACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqBeBAAmiNZ1Q1YJQMUUkouMQqcHtXpZhBROGz+jun8sGoXAZMkhnq/\r\nd379zK1ZrJMJq9Fv6kORAeSgODpnvq6ka+ionz5cw1XRIM5nclwt3LyTi65G\r\nHDbBnBrJpOELOEOZ0sVXdpXybY/O4/SG0ZUELugABwfmk6rfJwFnw/AeNhpz\r\nZMSEXBB5n9UzLEbG/7vTXKokYRH8JtmzARVUU3cj3lVMjfeLYs+oUilwqGS+\r\nDnV7SzF0cSOYrcqLjoHrP5Nz8hrkqPsYZfyVz1h2eGXWLO6Qapt4SdiocgQy\r\no2QPKElx6kbGTbl8sRtpbNkXl0clRL5V86PovwVH9YPQh6DFWalZs5jtQIvv\r\nL9JCOoxW08QNwvQF9FemfR7bJsajPGbVyWoslWM00ZFmDNdwG8j+wnU50WEr\r\nxTkDMQWf/fcORVpSXPbtEhKxvDbkqhgIKbuPmAacDaavrPObZ67viNjbHDM6\r\neTwefQJ8VZ5CfTA4IOWENY5kyJC0Cvx3ADoxTH/6FRXzo0ctzNfK9YcvnUcT\r\nPTlww8t8cPkxXOQsJGAs4fygnW27U3+uNZNOxG+Cljl3HjYHQUhRTBOT6le/\r\nPUMSb8Bu/COB5my6/ChxSc4vLt6fJD3XWV2/AcZGDU2UxF25ahOaANlT9dEY\r\n3UsfrOyR1axvi70/VZGbF43xbmK1imaS+3E=\r\n=yB/f\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"achaljhawar","email":"achaldps@gmail.com"},"directories":{},"maintainers":[{"name":"achaljhawar","email":"achaldps@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/password-generator_1.0.0_1681306004709_0.3856597724181057"},"_hasShrinkwrap":false}},"time":{"created":"2023-04-12T13:26:44.655Z","1.0.0":"2023-04-12T13:26:44.861Z","modified":"2023-04-12T13:26:45.032Z"},"maintainers":[{"name":"achaljhawar","email":"achaldps@gmail.com"}],"description":"A npm package that generates random passwords with specified length and complexity.","homepage":"https://github.com/achaljhawar/password-generator#readme","keywords":["password","generator","random"],"repository":{"type":"git","url":"git+https://github.com/achaljhawar/password-generator.git"},"author":{"name":"Achal Jhawar"},"bugs":{"url":"https://github.com/achaljhawar/password-generator/issues"},"license":"MIT","readme":"<h1>password-generator</h1>\r\n\r\nA simple npm package that generates a random password with a specified length and complexity.\r\n\r\n\r\n<h2>Installation </h2>\r\n\r\nTo install the package, simply run the following command:\r\n\r\n```\r\nnpm install @achaljhawar/password-generator\r\n```\r\n<h2>Usage</h2>\r\n\r\nJust use the 'generatePassword' method, with the appropriate password length and complexity, to begin using the package.\r\n\r\n```js\r\nconst generatePassword = require('@achaljhawar/password-generator');\r\n\r\nconst password = generatePassword(10, true, true); // Generates a password with a length of 10 that contains lowercase and uppercase characters, numbers, and special characters.\r\n\r\nconsole.log(password); // Output: \"Fp#n9XZ7dK\"\r\n```\r\n\r\nThe `generatePassword` function takes in three optional parameters:\r\n\r\n<ul>\r\n<li>length: The desired length of the password (default is 8).\r\n<li>hasNumbers: Whether or not the password should contain numbers (default is true).\r\n<li>hasSpecialChars: Whether or not the password should contain special characters (default is true).\r\n</ul>\r\n\r\n<h2>Examples</h2>\r\n\r\nHere are some examples of how you can use the `generatePassword` function:\r\n\r\n```js\r\nconst generatePassword = require('@achaljhawar/password-generator');\r\n\r\nconst password1 = generatePassword(); // Generates a password with the default options (length of 8 that contains lowercase and uppercase characters, numbers, and special characters).\r\n\r\nconst password2 = generatePassword(12); // Generates a password with a length of 12 that contains lowercase and uppercase characters, numbers, and special characters.\r\n\r\nconst password3 = generatePassword(16, false, true); // Generates a password with a length of 16 that contains only lowercase and uppercase characters and special characters.\r\n\r\nconsole.log(password1); // Output: \"h@Q9XtLz\"\r\nconsole.log(password2); // Output: \"Vp*Yt#n7lO$a\"\r\nconsole.log(password3); // Output: \"cvW$zGxOyP%qTjK\"\r\n```\r\n\r\n<h2>Contributing</h2>\r\n\r\nIf you find any bugs or issues with the package, please feel free to submit an issue or pull request on the GitHub repository.\r\n\r\n","readmeFilename":"README.md"}