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.
ng-money-mask
Advanced tools
An AngularJS (1.x) directive to mask inputs with currency values
** Para ler este documento em Português
, clique aqui **
$ npm install angular-money-directive --save
or
$ bower install angular-money-directive --save
<script src="rw-money-mask.min.js"></script>
rw.moneymask
moduleangular.module('yourApp', ['rw.moneymask'])
money-mask
<input type="text" name="price" ng-model="model.price" money-mask />
Obs: ngModel is required!
Number
. e.g.: 100
($ 100.00), 4.20
($ 4.20), 4340.65
($ 4,340.65)$filter('number')
, which uses $locale.NUMBER_FORMATS
configuration (separators, fraction size, etc) so it's i18n compatible.Use money-mask-append
and money-mask-prepend
to add some text to the formatted currency.
<input type="text" name="price" ng-model="model.price" money-mask money-mask-prepend="$" />
or
<input type="text" name="price" ng-model="model.price" money-mask money-mask-append="dollars" />
FAQs
Angular directive to mask inputs with currency values
The npm package ng-money-mask receives a total of 0 weekly downloads. As such, ng-money-mask popularity was classified as not popular.
We found that ng-money-mask demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.