is-money-usd

0.1.2 • Public • Published

is-money-usd

Test for a USD formatted input

Build Status

Installation

First install node.js. Then:

npm install is-money-usd --save

Usage

var isMoney = require('is-money-usd');
isMoney('$1,999.99'); // true
isMoney(400); // true
isMoney('not money') // false
isMoney(',45$.00') //false

Contributing

Please read the Contributing guidelines.

Running Tests

We are using nodeunit to test. To run tests, first install nodeunit and any dependencies via npm:

npm install

Run tests with:

npm test

Package Sidebar

Install

npm i is-money-usd

Weekly Downloads

2

Version

0.1.2

License

Public Domain

Last publish

Collaborators

  • meissadia
  • billhimmelsbach
  • harrisj_gov
  • allenjo
  • wmhiggins
  • flacoman91
  • cfpbadmin
  • adamdscott
  • contolini
  • mistergone
  • wpears
  • anselmbradford
  • himedlooff
  • scotchester