Skip to content
This repository has been archived by the owner on May 8, 2021. It is now read-only.

ShawonAshraf/bd-cellnum-validator

Repository files navigation

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

About

Validates Bangladeshi cell phone numbers

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •