2.0.3 • Published 8 years ago

enumerate-words v2.0.3

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

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!

2.0.3

8 years ago

2.0.2

8 years ago

2.0.1

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago