leomax-mask
v0.0.1
Published
Реализация масок для инпутов
Downloads
2
Readme
leomax-mask
Установка
yarn add leomax-mask
npm i -s leomax-mask
Использование
import Mask from 'leomax-mask';
const myInput = document.getElementById('my-input-id');
new Mask(myInput, {
mask: 'aaa-999?'
});
Телефон
import Mask from 'leomax-mask';
import 'leomax-mask/lib/ext/phone';
new Mask(myInput, 'phone');