# bd-cellnum-validator

> Validates Bangladeshi cellphone numbers.

Latest version **5.3.0** (published 2020-12-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install bd-cellnum-validator
pnpm add bd-cellnum-validator
yarn add bd-cellnum-validator
bun add bd-cellnum-validator
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 5.3.0 |
| Published | 2020-12-15 |
| First published | 2018-07-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 8.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 7 |
| Author | Shawon Ashraf |
| Maintainers | rockash93 |
| Keywords | regex, validation |

## Links

- npm: https://www.npmjs.com/package/bd-cellnum-validator
- Repository: https://github.com/ShawonAshraf/bd-cellnum-validator
- Homepage: https://github.com/ShawonAshraf/bd-cellnum-validator#readme
- Issues: https://github.com/ShawonAshraf/bd-cellnum-validator/issues
- npm.io page: https://npm.io/package/bd-cellnum-validator

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 5.3.0 (latest) — 2020-12-15
- 5.2.0 — 2020-10-18
- 5.1.1 — 2020-08-30
- 5.1.0 — 2020-08-30
- 5.0.0 — 2020-08-30
- 4.0.0 — 2019-03-18
- 3.0.2 — 2018-10-15
- 3.0.1 — 2018-10-15
- 2.0.0 — 2018-09-20
- 1.0.1 — 2018-07-17
- 1.0.0 — 2018-07-17

## README

# bd-cellnum-validator
> Validates Bangladeshi cell phone numbers.

[![NPM](https://nodei.co/npm/bd-cellnum-validator.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/bd-cellnum-validator/)

[![Build Status](https://travis-ci.org/ShawonAshraf/bd-cellnum-validator.svg?branch=master)](https://travis-ci.org/ShawonAshraf/bd-cellnum-validator)
[![Build Status](https://dev.azure.com/shawonAshraf/bd-cellnum-validator/_apis/build/status/ShawonAshraf.bd-cellnum-validator?branchName=azure-pipelines)](https://dev.azure.com/shawonAshraf/bd-cellnum-validator/_build/latest?definitionId=8&branchName=azure-pipelines)
[![npm version](https://badge.fury.io/js/bd-cellnum-validator.svg)](https://badge.fury.io/js/bd-cellnum-validator) [![DeepScan grade](https://deepscan.io/api/teams/4763/projects/6519/branches/54718/badge/grade.svg)](https://deepscan.io/dashboard#view=project&tid=4763&pid=6519&bid=54718) [![CodeFactor](https://www.codefactor.io/repository/github/shawonashraf/bd-cellnum-validator/badge)](https://www.codefactor.io/repository/github/shawonashraf/bd-cellnum-validator)

## How to?
### Installation

- Install from `npm` :
```bash
npm install bd-cellnum-validator
```

### Usage Example

```javascript
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](https://github.com/ShawonAshraf/bd-cellnum-validator)
- Then open your favorite command shell inside the directory and run :

```bash
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

---
_Source: https://npm.io/package/bd-cellnum-validator · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
