Words Ninja2019

JavaScript
npm
GitHub Repository

Split text without spaces into a list of words in JavaScript

Teligro – WordPress Tab

For my recent project, I need a trick to split strings contain English words to separate words. My stack is Node.js and no packages have been developed for my need.

For example, I need this string “youneedtolearnfromyourmistakes” split to words “You Need To Learn From Your Mistakes”.

For this reason, I began searching for the development of a package for my need. And finally, with some open source project, I develop a package for split strings to words. The package called “wordsninja” has been released.

Install

Install with npm

npm install wordsninja --save

Documentation

https://github.com/parsakafi/wordsninja

https://npmjs.com/package/wordsninja

Headshot of Parsa

Hi, I'm Parsa. I'm a software engineer based in Iran. You can follow me on X, see some of my work on GitHub, or read more about me on about page.