Skip to content

kendaleiv/ensure-oxford-commas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ensure-oxford-commas

npm travis-status coveralls

Ensure or discover if Oxford commas are being used in English language text.

Install

> npm install ensure-oxford-commas

Usage

import { ensureOxfordCommas, isMissingOxfordCommas } from 'ensure-oxford-commas';

ensureOxfordCommas('Please choose between red, green and blue.');  // throws
ensureOxfordCommas('Please choose between red, green, and blue.'); // does not throw

isMissingOxfordCommas('Please choose between red, green and blue.');  // true
isMissingOxfordCommas('Please choose between red, green, and blue.'); // false

Author

Ken Dale

License

MIT

Contributions

They're welcome! Open an issue or send a pull request!

About

Ensure or discover if Oxford commas are being used in English language text.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors