0.0.21 • Published 2 years ago

sivgen v0.0.21

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Sivgen

Minimal (2.4 kb) and simple random emoji, integer and string generator written in typescript with no dependecies.

Installation

Using npm

npm install sivgen

Using yarn

yarn add sivgen

Usage

import { integer, char, emoji } from "sivgen"

// Arguments - maximum number, number to exclude (optional)
const randomInteger = integer(100, 9);

// Arguments - length of string, exlcude number ( default false )
const randomString = char(2, true);

// Arguments - emoji to exclude (optional)
const randomEmoji = emoji("💡");

Contributing

Currently this module is in development, contributions and pull requsts are welcome.