# parseMask (@salmonui/inputs/masked-field)

> The parseMask function of @salmonui/inputs/masked-field: Compiles a mask; results are cached per mask string when no tokens are given.

Canonical: https://salmonui.dev/docs/reference/inputs/masked-field/parseMask

```ts
import { parseMask } from '@salmonui/inputs/masked-field';
```

Entry index: https://salmonui.dev/docs/reference/inputs/masked-field (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/inputs/masked-field.md).

## Reference

Kind: function

```ts
function parseMask(mask: string, tokens?: MaskTokens): Mask;
```

Compiles a mask; results are cached per mask string when no `tokens` are given.
