# msisdn-formatter

> Russian msisdn normalizer and formatter

Latest version **1.1.0** (published 2020-04-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install msisdn-formatter
pnpm add msisdn-formatter
yarn add msisdn-formatter
bun add msisdn-formatter
```

## 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 | 1.1.0 |
| Published | 2020-04-17 |
| First published | 2016-06-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 6.9.2 |
| Dependencies | 0 |
| Unpacked size | 206.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Dalee IA |
| Maintainers | dalee-user, ns3777k |
| Keywords | msisdn |

## Links

- npm: https://www.npmjs.com/package/msisdn-formatter
- Repository: https://github.com/Dalee/msisdn-formatter
- Homepage: https://github.com/Dalee/msisdn-formatter#readme
- Issues: https://github.com/Dalee/msisdn-formatter/issues
- npm.io page: https://npm.io/package/msisdn-formatter

## Recent versions

- 1.1.0 (latest) — 2020-04-17
- 1.0.1 — 2017-02-12
- 1.0.0 — 2016-06-29

## README

# msisdn-formatter

[![Build Status](https://travis-ci.org/Dalee/msisdn-formatter.svg?branch=master)](https://travis-ci.org/Dalee/msisdn-formatter)
[![codecov](https://codecov.io/gh/Dalee/msisdn-formatter/branch/master/graph/badge.svg)](https://codecov.io/gh/Dalee/msisdn-formatter)
[![Dependencies](https://david-dm.org/Dalee/msisdn-formatter.svg)](https://david-dm.org/Dalee/msisdn-formatter)

Two simple function to normalize and format msisdn.

## Install

```
$ npm install msisdn-formatter --save
```

## Usage

```js
import { clean, pretty } from 'msisdn-formatter';

const userNumber = '+7 926 000-00-00';

console.log(clean(userNumber)); // Prints: '9260000000'
console.log(pretty(userNumber, 'full')); // Prints: '+7 (926) 000-0000'
```

Available formats:
- clean: *79260000000*
- cleaner: *9260000000*
- short: *926 000-0000*
- usual: *(926) 000-0000*
- full: *+7 (926) 000-0000*

The library is built to support AMD, CommonJS and globals.

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