enumerate-words
v2.0.3
Published
human-friendly enumeration of words
Downloads
4
Readme
enumerate-words
A human-friendly enumeration of words. Uses oxford comma ;)
install
npm install enumerate-words
signature
enumerate({
words: string[],
cutoff?: number, // defaults to 4
placeholder?: string, // defaults to 'Things'
andStr?: string, // defaults to 'and'
noOxford?: boolean // defaults to false
}) => string
examples
See tests for all supported usages.
contributing
Install
npm install
Build
npm run build
npm run watch
Test
npm test
Put up a PR when tests pass!