To install, in the command line, just enter
npm i idgen --save
This is a program made in javascript which is open source. It generates ids and identification keys to be used in many cases.
import idgen from "idgen";
console.log(idgen(4));
The output would be a random string with 4 characters.
Like ryw3
.
idgen(4);
/* ^ ^--------------|
function length of the random generated string.
*/
we are awaiting for your pull requests. If you face any issue, run npm test
, which will give to the test report, or report issue on github.