lexis-count
Retrieve the number of words in a string.
Install
~ ❯❯❯ npm install lexis-count
Usage
const lexisCount = ; //=> 5 //=> 5
API
lexisCount()
Type: string
Returns the number of words in a string.
Related
- lexis - CLI for this module
Credits
- The regular expression used has been adapted from word-regex by regexhq.
License
MIT © Nikolaos Kamarinakis