UNPKG

v-mask

Version:

Tiny input mask library for Vue.js based on text-mask-core (~5kb) exposed as directive. No dependencies

6 lines (5 loc) 307 B
export const inBrowser = typeof window !== 'undefined'; export const UA = inBrowser && window.navigator.userAgent.toLowerCase(); export const isEdge = UA && UA.indexOf('edge/') > 0; export const isAndroid = (UA && UA.indexOf('android') > 0); export const isChrome = UA && /chrome\/\d+/.test(UA) && !isEdge;