JSPM

enumerate-words

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 6
  • Score
    100M100P100Q15362F
  • 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

a human-friendly enumeration of words

console.log(enumerate(['Boo'], 4, 'People')) // 'Boo'
console.log(enumerate(['Boo', 'Bob'], 4, 'People')) // 'Boo and Bob'
console.log(enumerate(['Boo', 'Bob', 'Foo'], 4, 'People')) // 'Boo, Bob and Foo'
console.log(enumerate(['Boo', 'Bob', 'Foo', 'Moo'], 4, 'People')) // '4 People'

install

npm install

test

npm test