@ztrehagem/phrase

2.0.0-0 • Public • Published

@ztrehagem/phrase

Generate random string

Use as CLI

$ npm i -g @ztrehagem/phrase

$ phrase -Aa0
kcXMzlGVOtcrKoZT

$ phrase -Aa0 -s 48
DMfcaGY2HyUhdUxBHoxO6aZvNZ4WubaYqxntFECLtPuJ9Sdf

$ phrase -Aa0 -s 48 -c "\\^$+-*/|()[]{}.,?#:;'\""
.uhb}QY7)sG0B[Njox}\"Xq6{v?X"t6D6Q)|Z/C]WT95ozMt

Use as Module

const { phrase } = require('@ztrehagem/phrase')

phrase({ size: 16, upper: true, lower: true, number: true }) //=> 'cMvUEYGzKVDqDhSL'
phrase({ size: 16, chars: "ABC" }) //=> 'ABBBACBACACABACA'

Package Sidebar

Install

npm i @ztrehagem/phrase

Weekly Downloads

0

Version

2.0.0-0

License

MIT

Unpacked Size

2.63 kB

Total Files

6

Last publish

Collaborators

  • ztrehagem