A simple function to generate random codes...
npm i @clunkylion/random-code-generator
import { randomCode } from '@clunkylion/random-code-generator';
/*
the function receives as a parameter the length of the code that it will return
*/
randomCode(10); //return string code- José Cortés - Initial work - PurpleBooth
This project is licensed under the MIT License - see the LICENSE.md file for details
- Hat tip to anyone whose code was used
- Inspiration
- etc