Skip to content

Commit

Permalink
Merge pull request #7 from krutoo/readme-fix
Browse files Browse the repository at this point in the history
readme fix
  • Loading branch information
krutoo authored Jul 3, 2024
2 parents a739116 + 66842ae commit 3511cdb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ npm add @krutoo/input-mask
Usage:

```ts
import { InputMask } from '@krutoo/input-mask/dom';
import { createInputMask } from '@krutoo/input-mask/dom';

const input = document.querySelector('input#phone');

const inputMask = InputMask(input, {
const inputMask = createInputMask(input, {
mask: '___-____-____',
placeholder: '_',
pattern: /\d/,
Expand Down

0 comments on commit 3511cdb

Please sign in to comment.