# encrypt-phone-numbers

> Encrypt any phone number

Latest version **1.0.2** (published 2022-09-23) · ISC license · 0 weekly downloads

## Install

```sh
npm install encrypt-phone-numbers
pnpm add encrypt-phone-numbers
yarn add encrypt-phone-numbers
bun add encrypt-phone-numbers
```

## 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.2 |
| Published | 2022-09-23 |
| First published | 2017-11-01 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Pier Roberto Lucisano |
| Maintainers | otrebor6 |
| Keywords | encrypt, phone, number |

## Links

- npm: https://www.npmjs.com/package/encrypt-phone-numbers
- Repository: https://github.com/pierroberto/encrypt-phone-numbers
- Homepage: https://github.com/pierroberto/encrypt-phone-numbers#readme
- Issues: https://github.com/pierroberto/encrypt-phone-numbers/issues
- npm.io page: https://npm.io/package/encrypt-phone-numbers

## Alternatives

- [random-seedable](https://npm.io/package/random-seedable.md) — 27.9K weekly downloads
- [n2words](https://npm.io/package/n2words.md) — 22.2K weekly downloads
- [@stdlib/math-base-special-factorialln](https://npm.io/package/@stdlib/math-base-special-factorialln.md) — 5.7K weekly downloads
- [@stdlib/math-base-special-abs2](https://npm.io/package/@stdlib/math-base-special-abs2.md) — 1.7K weekly downloads
- [commons-math-interpolation](https://npm.io/package/commons-math-interpolation.md) — 1.4K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2022-09-23
- 1.0.1 — 2018-02-16
- 1.0.0 — 2017-11-01

## README

# encrypt-phone-numbers

In order to encrypt any phone number, you need to call the function **encryptNumber** and pass three arguments: the phone number (as string or array of strings), the number of digits you want to hide and the symbol you want to use to hide the numbers

```javscript
encryptNumber('+1-541-754-3010', 5, 'X')
// Result :  +1-541-75X-XXXX
```

## Installation

* `npm install 'encrypt-phone-number'`
* In your JS file: `const encryptedNumber = require ('encrypt-phone-number')`

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