New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ngx-mask

Package Overview
Dependencies
Maintainers
1
Versions
255
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngx-mask

awesome ngx mask

19.0.6
latest
npm
Version published
Weekly downloads
355K
1.12%
Maintainers
1
Weekly downloads
 
Created

What is ngx-mask?

ngx-mask is an Angular library that provides input masking capabilities. It allows developers to define patterns for input fields, ensuring that users enter data in a specific format. This is particularly useful for fields like phone numbers, dates, and credit card numbers.

What are ngx-mask's main functionalities?

Basic Input Masking

This feature allows you to apply a basic mask to an input field. In this example, the input field will only accept numbers in the format of '0000-0000-0000-0000', which is useful for credit card numbers.

<input type='text' mask='0000-0000-0000-0000' />

Date Masking

This feature allows you to apply a date mask to an input field. The input field will only accept dates in the format of 'DD/MM/YYYY'.

<input type='text' mask='00/00/0000' />

Custom Masking

This feature allows you to create custom masks. In this example, the input field will accept a pattern like 'A0A 0A0', which is useful for postal codes.

<input type='text' mask='A0A 0A0' />

Dynamic Masking

This feature allows you to apply a mask dynamically based on a variable. The 'dynamicMask' variable can be changed at runtime to apply different masks.

<input type='text' [mask]='dynamicMask' />

Other packages similar to ngx-mask

Keywords

ng2-mask

FAQs

Package last updated on 20 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts