Skip to content

JuhQ/split-text-middle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Split text

Split text from the middle

npm install split-text-middle --save

var split = require('split-text-middle');

var text1 = 'This is a long sentence, something that has a comma in it';
var text2 = 'This is a longer sentence, something that has multiple commas, dots. And other, stuff like space monkeys, free beer.. And, who knows.';

console.log("text1", split(text1));
console.log("text2", split(text2));

About

Split your text, from the middle

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published