@mohibul-refat/random-password
v1.0.2
Published
Generate strong, random passwords with the 'Random Password Generator' npm package. Easily customize criteria, choose complexity levels, and enhance security. Simplify password creation for your projects with a user-friendly API.
Downloads
4
Maintainers
Readme
Random Password Generator
Generate strong, random passwords with the 'Random Password Generator' npm package. Easily customize criteria, choose complexity levels, and enhance security. Simplify password creation for your projects with a user-friendly API.
Prerequisites
This project requires NodeJS and NPM. Node and NPM are really easy to install. To make sure you have them available on your machine, try running the following command.
$ npm -v && node -v
6.4.1
v8.16.0
Installation
You can install the 'Random Password Generator' npm package using npm or yarn:
npm install @mohibul-refat/random-password
# OR
yarn add @mohibul-refat/random-password
Usage
To use the 'Random Password Generator' in your JavaScript or Node.js project, require it and call the generatePassword function.
const generatePassword = require('@mohibul-refat/random-password');
// Generate a random password with the default length (8 characters)
const password = generatePassword();
console.log(password);
// Generate a random password with a specific length (e.g., 12 characters)
const customPassword = generatePassword(12);
console.log(customPassword);
By default, if you don't specify a length, the function will generate an 8-character password. You can customize the length by passing an integer as an argument to generatePassword.
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Add your changes:
git add .
- Commit your changes:
git commit -m 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request to our main branch:
Built With
- JavaScript
- Node.js
- NPM
Authors
- Mirza Mohibul Hasan
License
ISC License © Mohibul Refat