Package Exports
- @alexcarpenter/word-count
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@alexcarpenter/word-count) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
word-count
Get the word count from a string
Installation
$ npm i @alexcarpenter/word-countUsage
import wordCount from '@alexcarpenter/word-count';
const p =
'Lorem ipsum dolor sit amet consectetur adipisicing elit. Voluptates provident beatae exercitationem unde, natus debitis doloribus dolorem, dolorum numquam culpa perferendis? Incidunt iusto magnam ex, reprehenderit dolor consectetur placeat quo.';
wordCount(p); //=> 30License
MIT.