1.0.1 • Published 8 years ago

split-text-middle v1.0.1

Weekly downloads
41
License
MIT
Repository
github
Last release
8 years ago

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));
1.0.1

8 years ago

1.0.0

8 years ago