JSPM

enumerate-words

2.0.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q15263F
  • License MIT

human-friendly enumeration of words

Package Exports

  • enumerate-words

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 (enumerate-words) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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!