# express-msisdn

> Using this middleware u can easily find the msisdn(for more visit https://en.wikipedia.org/wiki/MSISDN) number.

Latest version **1.0.8** (published 2019-04-23) · MIT license · 0 weekly downloads

## Install

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

## 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.0.8 |
| Published | 2019-04-23 |
| First published | 2019-04-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | kamrulhasan1203 |
| Maintainers | iamcharliev2 |
| Keywords | msisdn, express-msisdn |

## Links

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

## Recent versions

- 1.0.8 (latest) — 2019-04-23
- 1.0.7 — 2019-04-23
- 1.0.6 — 2019-04-21
- 1.0.5 — 2019-04-21
- 1.0.4 — 2019-04-21
- 1.0.3 — 2019-04-21
- 1.0.2 — 2019-04-21
- 1.0.1 — 2019-04-21
- 1.0.0 — 2019-04-21

## README

# express-msisdn
Find User's Msisdn number.(For more please visit https://en.wikipedia.org/wiki/MSISDN)
This library/middleware exported as Node.js modules.

## Installation

Using npm :
``` 
$ npm i -g npm
$ npm i express-msisdn
```

## In Node.js : 

```
const express = require('express')
const app = express()
const msisdn = require('express-msisdn');

// add msisdn middleware
app.use(msisdn());
const port = 3000

app.get('/', (req, res) =>{ 
    res.send('Msisdn : ' + req.msisdn);
})

app.listen(port, () => console.log(`Msisdn example app listening on port ${port}!`));
```


## Caution:
 1. You have to turn on mobile data instead of wifi.  
 2. This middlware search for following headers in http request :

 'X-MSISDN',
 'X_MSISDN',
 'HTTP_X_MSISDN',
 'X-UP-CALLING-LINE-ID',
 'X_UP_CALLING_LINE_ID',
 'HTTP_X_UP_CALLING_LINE_ID',
'X_WAP_NETWORK_CLIENT_MSISDN'

If u didn't find msisdn then contact with your mobile operator and ask for header and add this header in custom header array.. 

## Solution : 
U can add custom header as follow :
```
app.use(msisdn(['OPERATOR_CUSTOM_HEADER_1','OPERATOR_CUSTOM_HEADER_2']));
```

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