Phone masks from across the universe (and every country)

npm install @desource/phone-mask-vue

Always fresh data

Country dialing rules and formats are synced from Google's library β€” automatically. Keep your inputs accurate without manual updates or stale data.
Google Logo

Tiny & fast β€” 2.9 KB

Extremely small footprint (6.1 KB / 2.9 KB gzip / 2.3 KB brotli). Optimized for performance on web and mobile β€” no bloat. Import only what you need, and it'll be even smaller by tree-shaking.
File Size Icon

Easy to integrate

Ready-made plugins for Vue, Nuxt, React, Svelte, Angular and vanilla JS. Need setup help? Use Ask Docs AI to get copy-paste guidance from live docs in seconds.
Nuxt.js LogoSvelte LogoReact LogoVue.js LogoAngular Logo