# chisel-addon-phone

> Chisel mutator addon for formatting phone numbers.

Latest version **1.0.0** (published 2018-08-27) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install chisel-addon-phone
pnpm add chisel-addon-phone
yarn add chisel-addon-phone
bun add chisel-addon-phone
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2018-08-27 |
| First published | 2018-08-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Ramtin Soltani |
| Maintainers | ramtinsoltani |
| Keywords | chisel, mutator, addon, phone, number, format |

## Links

- npm: https://www.npmjs.com/package/chisel-addon-phone
- Repository: https://github.com/ramtinsoltani/chisel-addon-phone
- Homepage: https://github.com/ramtinsoltani/chisel-addon-phone#readme
- Issues: https://github.com/ramtinsoltani/chisel-addon-phone/issues
- npm.io page: https://npm.io/package/chisel-addon-phone

## Dependencies (1)

- [google-libphonenumber](https://npm.io/package/google-libphonenumber.md) ^3.1.11

## 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.0 (latest) — 2018-08-27

## README

# Phone (Chisel Mutator Addon)

Formats a phone number based on the provided country.

# Installation

Use the Chisel RESTful API, Chisel CLI, or Chisel GUI to install this mutator addon.

# Usage

After installation, this addon will be available on `api.mutators.addons.phone` as a function with the following parameters:
  - `number`: A valid phone number in any format.
  - `country`: A country code in ISO 3166 format.
  - `format`: An optional string, either `int` for International, `nat` for National, `e164` for E164, and `rfc3966` for RFC3966 formatting (defaults to `int`).

## Example

```js
api.mutators.addons.phone('1235556789', 'US');             // Returns "+1 123-555-6789"
api.mutators.addons.phone('1235556789', 'US', 'int');      // Returns "+1 123-555-6789"
api.mutators.addons.phone('1235556789', 'US', 'nat');      // Returns "(123) 555-6789"
api.mutators.addons.phone('1235556789', 'US', 'e164');     // Returns "+11235556789"
api.mutators.addons.phone('1235556789', 'US', 'rfc3966');  // Returns "tel:+1-123-555-6789"
```

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