MCPcopy
hub / github.com/uNmAnNeR/imaskjs

github.com/uNmAnNeR/imaskjs @v7.6.1 sqlite

repository ↗ · DeepWiki ↗ · release v7.6.1 ↗
531 symbols 1,086 edges 95 files 80 documented · 15%
README

imaskjs

vanilla javascript input mask

npm version License: MIT Coverage Status

Features

  • get and set raw and unmasked values easily
  • no external dependencies
  • supports overwrite mode
  • supports web components
  • supports contenteditable
  • RegExp mask
  • Function mask
  • Number mask (integer and decimal)
  • Date mask (various format support, autofix mode)
  • Dynamic/on-the-fly mask
  • Pattern mask
  • show placeholder always and only when necessary
  • unmasked value can contain fixed parts
  • optional input parts (greedy)
  • custom definitions
  • reusable blocks
  • secure text entry
  • Enum and Range masks
  • Repeating blocks
  • convert and format values with pipe

Plugins

Install

npm install imask and import IMask from 'imask';

or use CDN:

<script src="https://unpkg.com/imask"></script>

Build & Test

npm run make

Compatibility

Supports all major browsers. Can also be used with outdated browsers. See how

Getting help

Contributors

Code Contributors

This project exists thanks to all the people who contribute. [Contribute].

Financial Contributors

Become a financial contributor and help us sustain our community. [Contribute]

Individuals

Organizations

Support this project with your organization. Your logo will show up here with a link to your website. [Contribute]

Extension points exported contracts — how you extend this code

TailDetails (Interface)
(no doc) [4 implementers]
packages/imask/src/core/tail-details.ts
IMaskFactory (Interface)
(no doc) [2 implementers]
packages/angular-imask/src/imask-factory.ts
SolidMaskedDirectiveInterface (Interface)
(no doc)
packages/solid-imask/src/directive.ts
PatternBlock (Interface)
(no doc) [3 implementers]
packages/imask/src/masked/pattern/block.ts
Directives (Interface)
(no doc)
packages/solid-imask/src/directive.ts
AppendTail (Interface)
(no doc) [2 implementers]
packages/imask/src/core/tail-details.ts

Core symbols most depended-on inside this repo

updateOptions
called by 87
packages/imask/src/masked/date.ts
nearestInputPos
called by 39
packages/imask/src/masked/pattern/block.ts
aggregate
called by 33
packages/imask/src/core/change-details.ts
append
called by 20
packages/imask/src/core/tail-details.ts
on
called by 20
packages/imask/src/controls/input.ts
createMask
called by 17
packages/imask/src/masked/factory.ts
toString
called by 13
packages/imask/src/core/tail-details.ts
push
called by 13
packages/imask/src/controls/input-history.ts

Shape

Method 343
Function 116
Class 66
Interface 6

Languages

TypeScript100%

Modules by API surface

packages/imask/src/masked/base.ts37 symbols
packages/imask/src/controls/input.ts36 symbols
packages/imask/src/masked/dynamic.ts34 symbols
packages/imask/src/masked/pattern.ts33 symbols
packages/imask/src/masked/number.ts27 symbols
packages/imask/src/masked/pattern/input-definition.ts24 symbols
packages/imask/src/masked/pattern/fixed-definition.ts23 symbols
packages/angular-imask/src/imask.directive.ts22 symbols
packages/imask/src/masked/pattern/cursor.ts17 symbols
packages/react-imask/src/mixin.ts16 symbols
packages/vue-imask/src/component3-options.ts14 symbols
packages/imask/src/masked/repeat.ts14 symbols

Dependencies from manifests, versioned

@angular-devkit/build-angular16.2.13 · 1×
@angular/cli16.2.13 · 1×
@angular/common16.1.1 · 1×
@angular/compiler16.1.1 · 1×
@angular/compiler-cli16.2.12 · 1×
@angular/core16.1.1 · 1×
@angular/forms16.2.12 · 1×
@angular/language-service16.2.12 · 1×
@angular/platform-browser16.1.1 · 1×
@angular/platform-browser-dynamic16.2.12 · 1×
@babel/core7.7.5 · 1×
@babel/plugin-transform-runtime7.24.3 · 1×

For agents

$ claude mcp add imaskjs \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact