1.0.0 • Published 4 years ago
sentence-divider v1.0.0
"# sentence-divider"
Returns the first sentence from a text.
This function also writes the sentence in the working folder to the firstSentence.txt file and the rest of the text to the remainSentences.txt file.
sentenceDivider('some text') -> first sentence from given textInstallation
npm i sentence-dividerUsage
const sentenceDivider = require('sentence-divider');
const firstSentence = sentenceDivider('some text');
console.log(firstSentence)1.0.0
4 years ago