Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
angular-mask
Advanced tools
Personalized and localized input masks for AngularJS
With Bower:
bower install --save angular-input-masks
Import the masks.min.js
script in your page.
Include the module ui.utils.masks
in your angular app.
Include the ui-mask directive in a text field like the examples abouve:
<input type="text" name="field" ng-model="number" ui-number-mask>
<input type="text" name="field" ng-model="number" ui-number-mask="3">
ui-negative-number
attribute:<input type="text" name="field" ng-model="number" ui-number-mask="4" ui-negative-number>
min
, max
and ui-hide-group-sep
attributes.<input type="text" name="field" ng-model="number" ui-number-mask min="10.1" max="100.9">
<!-- Use 'ui-hide-group-sep' attribute if you don't want show the thousands separators-->
<input type="text" name="field" ng-model="number" ui-number-mask ui-hide-group-sep>
<input type="text" name="field" ng-model="percentage" ui-percentage-mask>
<input type="text" name="field" ng-model="percentage" ui-percentage-mask="4">
Support to the min
, max
and ui-hide-group-sep
attributes.
Internationalized: Used the decimal separator and thousands separator defined in the client browser configuration.
<input type="text" name="field" ng-model="money" ui-money-mask>
<input type="text" name="field" ng-model="money" ui-money-mask="3">
Support to the min
, max
and ui-hide-group-sep
attributes.
Internationalized: Used the currency symbol, decimal separator and thousands separator defined in the client browser configuration.
<input type="text" name="field" ng-model="phoneNumber" ui-br-phone-number>
<input type="text" name="field" ng-model="cep" ui-br-cep-mask>
<input type="text" name="field" ng-model="initializedCpf" ui-br-cpf-mask>
<input type="text" name="field" ng-model="initializedCnpj" ui-br-cnpj-mask>
<input type="text" name="field" ng-model="initializedCpfCnpj1" ui-br-cpfcnpj-mask>
<select ng-init="ufs=['AC','AL','AM','TO']" ng-model="selectedUF" ng-options="uf for uf in ufs"></select>
<input type="text" name="field19" ng-model="ieField" ui-br-ie-mask='selectedUF'>
Support masks for all the 27 brazillian states.
Validations according to the Sintegra especification.
See more usage examples in the Demo page
Looking for related filters? Take a look at angular-br-filters
npm install
gulp build
gulp test:unit
gulp test:e2e
gulp test
1.4.0
The build files are no longer available in the release folder. They are now at a separated repository
The instalation via bower remains the same. However all files are in root insted of the release folder.
Now we have 3 different build options:
<a name="1.3.0"></a>
FAQs
Personalized input masks for AngularJS
The npm package angular-mask receives a total of 17 weekly downloads. As such, angular-mask popularity was classified as not popular.
We found that angular-mask demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.