1.0.3 • Published 4 years ago

splitsentences v1.0.3

Weekly downloads
5
License
MIT
Repository
-
Last release
4 years ago

This function receives some string content and a maximum length, and will break the content into a collection of strings that will fit the maximum length, but prioritizing: (a) sentences, (b) sentence fragments, (c) and lastly, words.

Example

const splitSentences = require('splitsentences');
const hugecontent = 'Blah blah blah.';
console.log(splitSentences(hugecontent,200));
1.0.3

4 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago