flavor-text

1.2.0 • Public • Published

flavor-text

Adds flavor to your text.

To use this package, first install it:

npm i flavor-text

Require it at the top of the file you want to use it in:

const flavorText = require("flavor-text");

Instantiate a new object:

let flavor = new flavorText();

And then pass the string you want to add flavor to as an argument to a method below.

Examples:

flavor.loud("why are you yelling");

Returns "WHY ARE YOU YELLING"

flavor.soft("PSST");

Returns "psst"

flavor.wavy("nice");

Returns "nice", but with a tilde on each side for sarcasm.

flavor.spacy("wow");

Returns "w o w"

flavor.period("what do you mean");

Returns "what. do. you. mean."

flavor.trailing("if you say so");

Returns "if... you... say... so..."

Package Sidebar

Install

npm i flavor-text

Weekly Downloads

0

Version

1.2.0

License

ISC

Unpacked Size

4.6 kB

Total Files

5

Last publish

Collaborators

  • heysivani