disrespect-caps

0.0.3 • Public • Published

Disrespect Caps

An easy way to check if 'Yes' === 'yes'.

Usage:

$ npm i --save disrespect-caps

import disrespect from 'disrespect-caps'
 
disrespect('Hello', 'hello') // true
disrespect('Hello', 'hi') // false

Y tho?

Sometimes when building tools, like CLI tools I found myself checking for string inputs for certain things like "yes" "no" or "true" "false" and you sometimes get weird inputs from your users, like "Yes" or "nO". This just irons out those things.

Readme

Keywords

none

Package Sidebar

Install

npm i disrespect-caps

Weekly Downloads

1

Version

0.0.3

License

MIT

Last publish

Collaborators

  • eanplatter