Humanize React
Comma delimit an array of React components for human readability with an Oxford comma, because we are not barbarians.
Usage
npm install humanize-react
; // => Homer Simpson and Marge Simpson (with formatting) // => "apples, tomatoes, and unicorns" // => "apples, tomatoes or unicorns" // => "apples, tomatoes and unicorns"
Options
oxfordComma
Boolean - Specify whether the Oxford comma should be included. Default:true
conjunction
String - Specify a conjunction. Default:and
Running Locally
npm install
npm run lint
npm run compile