string-wizard

Change text, transform, animations, and even more related to STRING type objects.

Usage no npm install needed!

<script type="module">
  import stringWizard from 'https://cdn.skypack.dev/string-wizard';
</script>

README

STRING WIZARD

Change text, transform, animations, and even more related to STRING type objects.

  • emojify, change of texte to emoji.
  • capitalize, the first letter of the word to Uppercase.
  • roll, get a random number (limited by a specified number).
  • clean, mainly used to evaluate code.
  • and more (more function added in the future).

Additional functions:

  • version, the version of string wizard.

EXEMPLES

  • clean exemple:
const to_eval = eval("const foo = 'foo'; return foo");
return clean(to_eval, { code: "xl" });
"foo"
  • roll exemple:
const number = 3;
return roll(number);
2 (or 1, 3)

NEED HELP ?

Go to the issue or contact me !