0.2.14 • Published 3 years ago

strdm v0.2.14

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

STRDM

Generate random strings

How to installtion?

  # yarn
  yarn add strdm -S --registry=https://registry.npmjs.org/

  # npm
  npm i strdm -S --registry=https://registry.npmjs.org/

How to use?

CommonJS

const strdm = require('strdm');

console.log(strdm());          // dZUYsl
console.log(strdm(32));        // ilq4i3rXe70rz3j4hrpjMKI3jqCDpr0q
console.log(strdm(32, true));  // 8AMl$2+8jC25u}>DXjjo9p]n.,vWhzVU
console.log(strdm(32, 'ABCDEFG123askdsl'));       // sdd2d1EFka2sBGdAs3Dsd2sAAsCCk1CG
console.log(strdm(32, { numbers: false }));       // iwhfOOHlEFNIbuTGHseCyCYnppCXoraZ
console.log(strdm(32, { strings: false }));       // 56124247096321521961829045800161
console.log(strdm(32, { strings: 'ABCDEFG' }));   // 8EE9B8GFF79CF28AADA9A2G439242211
console.log(strdm(32, { symbols: true }));        // HccU8vM)1,TVHi$=J,::V^wiMxY(tG-j
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());          // dZUYsl
console.log(strdm(32));        // ilq4i3rXe70rz3j4hrpjMKI3jqCDpr0q
console.log(strdm(32, true));  // 8AMl$2+8jC25u}>DXjjo9p]n.,vWhzVU
console.log(strdm(32, 'ABCDEFG123askdsl'));       // sdd2d1EFka2sBGdAs3Dsd2sAAsCCk1CG
console.log(strdm(32, { numbers: false }));       // iwhfOOHlEFNIbuTGHseCyCYnppCXoraZ
console.log(strdm(32, { strings: false }));       // 56124247096321521961829045800161
console.log(strdm(32, { strings: 'ABCDEFG' }));   // 8EE9B8GFF79CF28AADA9A2G439242211
console.log(strdm(32, { symbols: true }));        // HccU8vM)1,TVHi$=J,::V^wiMxY(tG-j
console.log(strdm(32, { symbols: true, numbers: false, strings: false }));    // ,|+;%]@;,_+#(%.~;[@!{}-<~?@=;;??
console.log(strdm(32, { symbols: ':;', numbers: false, strings: false }));    // :;;;::;;:::::;::::;:;::;:;::;;;:
0.2.14

3 years ago

0.2.13

3 years ago

0.2.12

3 years ago

0.2.11

3 years ago

0.2.10

3 years ago

0.2.9

3 years ago

0.2.8

3 years ago

0.2.6

3 years ago

0.2.5

3 years ago

0.2.4

3 years ago

0.2.3

3 years ago

0.2.2

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago