STRDM
Generate random strings
How to installtion?
yarn add strdm -S --registry=https://registry.npmjs.org/
npm i strdm -S --registry=https://registry.npmjs.org/
How to use?
CommonJS
const strdm = require('strdm');
console.log(strdm());
console.log(strdm(32));
console.log(strdm(32, true));
console.log(strdm(32, 'ABCDEFG123askdsl'));
console.log(strdm(32, { numbers: false }));
console.log(strdm(32, { strings: false }));
console.log(strdm(32, { strings: 'ABCDEFG' }));
console.log(strdm(32, { symbols: true }));
console.log(strdm(32, { symbols: true, numbers: false, strings: false }));
console.log(strdm(32, { symbols: ':;', numbers: false, strings: false }));
ESM
import strdm from "strdm";
console.log(strdm());
console.log(strdm(32));
console.log(strdm(32, true));
console.log(strdm(32, 'ABCDEFG123askdsl'));
console.log(strdm(32, { numbers: false }));
console.log(strdm(32, { strings: false }));
console.log(strdm(32, { strings: 'ABCDEFG' }));
console.log(strdm(32, { symbols: true }));
console.log(strdm(32, { symbols: true, numbers: false, strings: false }));
console.log(strdm(32, { symbols: ':;', numbers: false, strings: false }));