5.3.0 • Published 3 years ago

bd-cellnum-validator v5.3.0

Weekly downloads
3
License
MIT
Repository
github
Last release
3 years ago

bd-cellnum-validator

Validates Bangladeshi cell phone numbers.

NPM

Build Status Build Status npm version DeepScan grade CodeFactor

How to?

Installation

  • Install from npm :
npm install bd-cellnum-validator

Usage Example

const validator = require('bd-cellnum-validator');

var cellNumber = '1212121'

// validator.isValid returns a boolean
// true - if the number is valid
// false - if not valid
var result = validator.isValid(cellNumber);

console.log(result);

Testing

  • Clone the repository from github
  • Then open your favorite command shell inside the directory and run :
npm run test

isValid function

  • isValid function takes the cell number as String as its param.
  • returns true if the cell number is valid and false otherwise.

License

MIT

5.3.0

3 years ago

5.2.0

4 years ago

5.1.1

4 years ago

5.1.0

4 years ago

5.0.0

4 years ago

4.0.0

5 years ago

3.0.2

6 years ago

3.0.1

6 years ago

2.0.0

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago