@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

Readme

Keywords

none

Package Sidebar

Install

npm i @mcansh/oxford-comma

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

4.8 kB

Total Files

6

Last publish

Collaborators

  • mcansh