just-the-words
Isolate the words from a given block of text.
Examples
;// -> ['Hello', 'world'] ;// -> ['Two', 'lines'] ;// -> ['Now', 'we\'re', 'going', 'crazy'] ;// -> ['Spider-man', 'He\'s', 'my', 'favorite']
Install
npm install just-the-wordsyarn add just-the-words
Use
const justTheWords = ;; console// -> ['Hello', 'world']
API
Default safe characters: '’-