Skip to content

francisfuzz/str-gen

Repository files navigation

str-gen

Node.js CI

"str-gen", short for "string generator". This is a utility package that generates a variety of random strings.

Usage

First, assuming that NPM is installed on your machine, create a new directory, navigate to it, and install the package using a command line interface (CLI) of your choice:

mkdir example-project
cd example-project
npm install @francisfuzz/str-gen

Then, create a file, say example.js and run it in your CLI as node example.js:

const generate = require('@francisfuzz/str-gen')
const SIMPLE_CHARSET = ['s', 'i', 'm', 'p', 'l', 'e']

console.log(generate(10, SIMPLE_CHARSET)) // => 'lsmsmepssp'

Check out the examples/ directory for more interesting cases.

Contributing

See CONTRIBUTING.md.

About

Utility package that generates a variety of random strings based on a specified charset

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

No packages published
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy