# globals-masks

> Many mask types with Javascript

Latest version **1.0.31** (published 2021-02-03) · ISC license · 0 weekly downloads

## Install

```sh
npm install globals-masks
pnpm add globals-masks
yarn add globals-masks
bun add globals-masks
```

## 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.31 |
| Published | 2021-02-03 |
| First published | 2021-02-03 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Lucas Henrique |
| Maintainers | witchmad |
| Keywords | mask, javascript, currency, date, phone, number, cpf, cnpj, creditcard |

## Links

- npm: https://www.npmjs.com/package/globals-masks
- npm.io page: https://npm.io/package/globals-masks

## 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.31 (latest) — 2021-02-03
- 1.0.3 — 2021-02-03
- 1.0.2 — 2021-02-03
- 1.0.1 — 2021-02-03
- 1.0.0 — 2021-02-03

## README

# Globals Masks

##### Instalation
```bash
npm i globals-masks
or
yarn add globals-masks
```

##### Simple example

```js
import { maskPhone } from 'globals-masks';

const value = "00000000000";

maskPhone(value); // (00) 0 0000-0000
```

##### Use as normalize

```js
import { maskNumber } from 'globals-masks';

const value = "40fdl14399da";

maskNumber(value) // 4014399
```

##### Available masks

| Name | Entry value | Return example |
| ---- | ----------- | -------------- |
| maskNumber | 123abc456 | 123456 |
| maskAccountBank | 000000 | 00000-0 |
| maskZipCode | 00000000 | 00000-000 |
| maskCurrency | 100000 | 1.000,00 |
| maskCnpj | 00000000000000 | 00.000.000/0000-00 |
| maskCpf | 00000000000 | 000.000.000-00 |
| maskDate | 00000000 | 00/00/0000 |
| maskPhone | 00000000000 | (00) 0 0000-0000 |
| maskCreditCard | 0000000000000000 | 0000 0000 0000 0000 |

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