enumerate-words
TypeScript icon, indicating that this package has built-in type declarations

2.0.3 • Public • Published

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!

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.3
    1
    • latest

Version History

Package Sidebar

Install

npm i enumerate-words

Weekly Downloads

11

Version

2.0.3

License

MIT

Last publish

Collaborators

  • albertywu