0.0.9 • Published 3 years ago

js-input-masking-polyfill v0.0.9

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
3 years ago

js-input-masking-polyfill

A work-in-progress polyfill for the Intl.InputMask 🎭 proposal.

Do not use this in production, there are still many flaws.

Status

Unstable. Submitted as an idea to TC39.

Installation

npm install --save js-input-masking-polyfill

Usage

import 'js-input-masking-polyfill';

new Intl.InputMask('credit-card-number').format('4012888888881881');
// "4012 8888 8888 1881"

// 15 digits.
new Intl.InputMask('credit-card-number').format('378282246310005');
// "3782 822463 10005"

Demo

You can see Intl.InputMask in action in the demo.

License

Apache 2.0

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago