cowify
v1.1.0
Published
cow's keyboard broke and leaves out some characters and i find it hilarious so im making it into a library
Readme
Cowify
A library that simulates a cow's broken keyboard by randomly removing characters from a given string.
Description
Cowify is a simple library that takes a string as input and returns a new string with some characters randomly removed, simulating a cow's broken keyboard. The library also includes options for "selinux" mode, which adds random selinux-related words to the output string.
Installation
To install Cowify, run the following command:
npm install cowifyUsage
To use Cowify, simply import the library and call the cowify function with a string as an argument:
import { cowify } from 'cowify';
const originalText = 'Hello, World!';
const cowifiedText = cowify(originalText);
console.log(cowifiedText);You can also customize the cowification percentage, selinux mode, and monke percentage by passing an options object:
const cowifiedText = cowify(originalText, {
cowPercent: 20,
selinux: true,
selinuxChancePercent: 50,
monkeChancePercent: 30
});This will cowify the text with a 20% chance of removing each character, enable selinux mode, add selinux-related words with a 50% chance, and add monke with a 30% chance.
CLI Tool
Cowify also includes a CLI tool that allows you to cowify text from the command line. To use the CLI tool, install Cowify globally:
npm install -g cowifyThen, run the following command:
cowify "Hello, World!"You can customize the options using the following options:
-c, --cow <percent> Percentage of cowification
-s, --selinux Toggle hardened mode
-S, --selinux-percent <percent> Percentage of selinux
-m, --monke-percent <percent> Percentage of monke
-v, --verbose Verbose mode
-h, --help display help for commandLicense
Cowify is released under the MIT License.
Disclaimer
This library is provided "as is" without any warranty. Use at your own risk.
hehe
hehe
