0.0.2 • Published 1 year ago

random-cow-generator v0.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

Random Cow Generator

This package provides a function to generate a random cow ID. The length of the entire string is equal to 2x the length parameter. The first half of the string is a sequence of "M" & "o" and "O" characters (length - 1), and the second half is a random ID (length - 1), after a dash.

Installation

You can install this package using npm:

npm install random-cow-generator

Usage

Here's how you can use the randomCowGenerator function:

import { randomCowGenerator } from "random-cow-generator";

const cowID = randomCowGenerator({ length: 10 });
console.log(cowID); // Outputs something like "MoooOOOoOO-fWF7tFYZt"

In this example, length is the length of the cow ID. The actual length of the returned string is 2x this value.

0.0.2

1 year ago

0.0.1

1 year ago