1.1.2 • Published 5 years ago
random-code-gen v1.1.2
Random Code Gen
A simple function to generate codes for anything what you need like exspecially making ids.
Installing
npm install code-gen
# or
yarn
Usage
const codeGen = require("random-code-gen"); //Getting package
let code = codeGen.random(5);//making 5 digit random code
let code2 = codeGen.number(6);//making 6 digit random number
console.log('Generated Random Code is "' + code + '"');//logging the code
console.log('Generated Number Code is "' + code2 + '"');//logging the code2
Contributing
- Fork the repository!
- Clone your fork:
git clone https://github.com/your-username/code-gen.git
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request
Author
© SudhanPlayz.
Authored and maintained by SudhanPlayz.
GitHub @SudhanPlayz