# mascaration

> Simplest string formatter

Latest version **1.0.0** (published 2022-03-13) · ISC license · 0 weekly downloads

## Install

```sh
npm install mascaration
pnpm add mascaration
yarn add mascaration
bun add mascaration
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2022-03-13 |
| First published | 2022-03-10 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Bruno Ricardo |
| Maintainers | brunoricardore |

## Links

- npm: https://www.npmjs.com/package/mascaration
- Repository: https://github.com/brunoricardore/mascaration
- Homepage: https://github.com/brunoricardore/mascaration#readme
- Issues: https://github.com/brunoricardore/mascaration/issues
- npm.io page: https://npm.io/package/mascaration

## Recent versions

- 1.0.0 (latest) — 2022-03-13
- 0.0.8 — 2022-03-13
- 0.0.7 — 2022-03-13
- 0.0.5 — 2022-03-13
- 0.0.4 — 2022-03-11
- 0.0.3 — 2022-03-10
- 0.0.2 — 2022-03-10
- 0.0.1 — 2022-03-10

## README

# MASCARATION
#### It is a simple string formatter
#### We have typescript definitions


To install:
```shell
npm i -S mascaration
```

The usage is very simple:

```ts
// mask to 88130-000
import {formatter} from 'mascaration';
const value = formatter('#####-###', '88130000');
// You can also use array of masks, it find the best match and uses it.
const comNonoDigito = formatter(['(##) #####-####', '(##) ####-####'], '2144440102');
const semNonoDigito = formatter(['(##) #####-####', '(##) ####-####'], '21944440102');
// unmask to 88130000
const value = unmask('88130-000');
```

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