Catalog npm
PACKAGE EXPLORERView in registry

@0devco/bd-phone-validator

npm

Bangladesh (BD) phone number validation

0devcobdbd-cellnum-validationbd-mobile-operatorbd-phone-validationbd-sellnum-validation
Versions collected6
Direct dependencies0From release 2.0.0
Last observed20 Oct, 22:07 UTC

README

Current package documentation

+880 bd-phone-validator

Bangladesh phone number validation

install

# npm
npm install @0devco/bd-phone-validator
# yarn
yarn add @0devco/bd-phone-validator

use

let bdPhone = require('@0devco/bd-phone-validator')
/* import */
import bdPhone from '@0devco/bd-phone-validator'

let check = bdPhone('01751211255')
console.log(check)

11 digit phn

  • 01751200200 , +8801751200200
bdPhone('01751200200')

less 11 digit

  • 0175120020 , 017 512 00 20
bdPhone('0175120020')

exceed (digit > 11)

  • input => 013512002002 , +88013512002002, +880 (135) 120-02002

  • output suggest => +8801351200200

bdPhone('013512002002')

invalid operator

  • 012512002002
bdPhone('012512002002')

demo

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 6

Collected releases
VersionPublishedDirect dependenciesOpen version
2.0.0Registry latest17 Oct 20180
1.0.217 Oct 20180
1.0.117 Oct 20180
1.0.017 Oct 20180
0.0.217 Oct 20180
0.0.116 Oct 20180

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
code4mk/bd-phone-validator

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 22:07 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:6277991f57265206a5d607a7fa467cebefc855fc184c3b057425a4bfb91118ee