1.0.1 • Published 4 years ago

choice-generator v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

Choice Generator

This is a package that is mainly used for its CLI. But if you need it you can use the random choice generator funcion from the package.

Installation

To start off you want to install it, to do so run this command.

npm i -g choice-generator

or if you are using the function do it normally:

npm i choice-generator

Usage

To use this you want to run this command after installing it:

choice-generator --help

This will display the help page to use the command.

Otherwise:

choice-generator gen Hello World,How are you?,Hope you are doing fine

Or if you are using the function here is an example:

const { generate } = require('choice-generator');

let res = generate("Hello World", "How are you?");

console.log(res);
Made by Micc.
Notes:
MAKE SURE TO HAVE A "," INSTEAD OF A SPACE BETWEEN CHOICES USING THE CLI. ONLY USE SPACES LIEK THIS EXAMPLE "Hello World"