@mcansh/oxford-comma
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

oxford-comma Build Status

Convert an array to an oxford comma string based on the Intl.ListFormat api

Install

$ npm install @mcansh/oxford-comma

Usage

const oxfordComma = require('@mcansh/oxford-comma');

oxfordComma(['Motorcycle', 'Bus', 'Car']);
//=> 'Motorcycle, Bus, and Car

Created by

License

MIT

Versions

Current Tags

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

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    1

Package Sidebar

Install

npm i @mcansh/oxford-comma

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

4.8 kB

Total Files

6

Last publish

Collaborators

  • mcansh