splitkeep
v1.0.1
Published
Split a string, keep the delimiter
Downloads
8
Readme
splitkeep
Split a string, keep the delimiter.
Usage
var splitkeep = require('splitkeep');
splitkeep('hello world\ni am james');
// ['hello world\n', 'i am james']
splitkeep('i like dots.they are my favourite.do you like them?');
// ['i like dots.', 'they are my favourite.', 'do you like them?']
Installation
npm install splitkeep --save