# taal

> simple input masking help function

Latest version **0.2.1** (published 2017-11-10) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.1 |
| Published | 2017-11-10 |
| First published | 2017-11-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Davis Yi |
| Maintainers | saebyuckbaan |
| Keywords | input, mask |

## Links

- npm: https://www.npmjs.com/package/taal
- Repository: https://github.com/Saebyuckbaan/taal.js
- Homepage: https://github.com/Saebyuckbaan/taal.js#readme
- Issues: https://github.com/Saebyuckbaan/taal.js/issues
- npm.io page: https://npm.io/package/taal

## Recent versions

- 0.2.1 (latest) — 2017-11-10
- 0.2.0 — 2017-11-10
- 0.1.1 — 2017-11-10
- 0.1.0 — 2017-11-10

## README

## Taal.js
탈(Taal) means a mask in Korean. Taal.js is a basic and simple input masking helper. This does not have any framework dependency.


## Usage
- You can import by just simply add Taal.js file into your project. 
- Taal( userInput, maskPattern ) will return an object with three keys.

Example
``` javascript
/*
* You have to use 0s in your mask pattern in order to replace 0 into your input.
* User input must be in string
*/

Taal( '6503213323', '(000)000-0000') // this will return { hasError: false, errorMessage: '', result: '(650)321-3323'}
Taal( '65032133233', '(000)000-0000') // this will return { hasError: true, errorMessage: 'your input length is not compatible with given mask', result: ''}
Taal( '12211990', '00/00/0000') // this will return { hasError: false, errorMessage: '', result: '12/21/1990'}
```

##### UPDATE LOG
##### 11/10/2017
- Entry point change for require or import statement
- Export default function added (Bug fix)

##### 11/9/2017
- Karma issue fixed.
- Minor edge case has handled

##### 11/4/2017 
- Project initiated and test spec has created.
- Basic functionality has been created
- Has issue with Karma testing

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