1.0.3 • Published 1 year ago

bleetify v1.0.3

Weekly downloads
51
License
GPL-3.0-or-later
Repository
github
Last release
1 year ago

Bleetify

License: GPL v3 Build Status

Have you ever wanted to have the ability to randomly bleet like a goat? No? Well that's why i've made bleetify! For all your goating needs, baa.

Install

$ npm install bleetify

Testing

Testing is done with:

This is simply because all very easy to use and hyper obvious. Also lab and code are basically mocha and chai, wait why don't we just use mo-

$ npm ci
$ npm test

Usage

  const Bleetify = require('bleetify');
  
  const sentence = 'Wow what an awesome sentence!';
  const bleet = Bleetify.bleet(sentence, 100);
  console.log(bleet);

Functions

List of the functions available to you if you install this illustrious npm package.

Bleetify.bleet(message, threshold (optional))

Bleetify.bleet('A message to bleet :o', 30) // returns 'A message to bleet :o' with a 30% chance of having baa
                                            // at the start or the end. Whether they are at the start or the end
                                            // is dictated by a coinflip. Threshold defaults to 20%.