1.0.1 • Published 5 years ago

@baltimorecounty/validation v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
5 years ago

Baltimore County Validation

Javascript validation helpers.

Available Methods

IsPhoneNumberValid

Valid formats

  • (123)456-7890
  • (123) 456-7890
  • 123-456-7890
  • 123.456.7890
  • 1234567890 (string and number)

Installation

npm i --save @baltimorecounty/validation

Usage

Valid Formats

import { IsPhoneNumberValid } from '@baltimorecounty/validation';

const isPhoneNumberValid = IsPhoneNumberValid("(111) 444-4444");

Testing

Each method should be covered by one or more tests. To run tests use npm test

Updating the Package

  1. After all unit tests pass, increment the package.json version accordingly
  2. Run npm publish