An all-in-one text splitter function to easily split, wrap, and clone text

Anime.js text.split() utility function is an easy to use, fully-featured, lightweight and performant modern text splitter for JavaScript.
It does all the following in only 7KB:

Check out the full documenation and learn more at animejs.com/documentation.