bleetify
v1.0.3
Published
have you ever wanted to talk like a goat? what do you mean no?
Downloads
22
Maintainers
Readme
Bleetify
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:
- @hapi/lab as the test runner and linter
- @hapi/code as the expectation library
- sinon as the stubbing library
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%.