0.1.0 • Published 7 years ago

dob-validate v0.1.0

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

dob-validate

This is a modern JavaScript verification toolkit library, running on Node.js and in the modern browser, provide feature-rich verification function, making verification simple and fun.

Installation

Using npm:

$ npm i --save dob-validate

Get Started

In Node.js:

// reference
const dobValidate = require('dob-validate');

// Check negative number
dobValidate.isNegativeNumber(-2); // => true
dobValidate.isNegativeNumber(-2.3); // => true
dobValidate.isNegativeNumber(2.3); // => false

// Check postive integer
dobValidate.isPositiveInteger(2); // => true
dobValidate.isPositiveInteger(2.3); // => false
dobValidate.isPositiveInteger(-2); // => false

Documentation

Feature

v0.1.1

  • 新增身份证号校验
  • 新增固定电话校验
  • 新增固定电话,和移动电话校验
  • 新增IDS(逗号分割字符串)校验
  • 新增各种类型账号校验
  • 新增各种密码类型校验
  • 新增数组内元素类型校验

v0.1.2

  • 使用Istanbul进行测试覆盖率
  • 提供gulp打包,可以提供在浏览器端使用
  • 提供启用自动测试功能,以及新增git hooks提交之前测试
  • ......

Community

If you have any question, please open an issue here

License

MIT

0.1.0

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.1

7 years ago