
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
angular-currency
Advanced tools
An angular directive that utilizes autoNumeric to format an input field as currency as a user types
Current Version
v1.0.6
Description
This is an angular 1.x directive that utilizes AutoNumeric to format an input field as currency as a user types.
Example
autoNumeric.js which should be located at `bower_omponents/autoNumeric/autoNumeric.js'bckrueger.angular-currency as a module dependency to your appHTML
<input type="text" ng-model="currency" angular-currency="options" variable-options="true" />
angular-currency: The options to be passed into AutoNumeric
variable-options: If you will be using dynamic options this needs to be set to true, otherwise the directive will not watch for options updates and update AutoNumeric
Angular Currency allows for all options supported by AutoNumeric.
"aSep": controls the thousand separator character
"dGroup": controls the digital grouping and the placement of the thousand separator
"aDec": controls the decimal character
"altDec": this was developed to accommodate for different keyboard layouts. altDec allows you to declare an alternative key to enter the decimal separator assigned in aDec
"aSign": displays the desired currency symbol (examples: € or EUR). Note: other symbols can be used, such as %, °C, °F, km/h & MPH the possibilities are endless
"pSign": controls the placement of the currency symbol (prefix or suffix)
"vMin": controls the minimum value allowed
"vMax": controls the maximum value allowed
Note - setting the vMin and vMax to both positive or negative with situations that limits the users ability to enter the proper values
"mDec": overrides the decimal places that that are set via the vMin/vMax values
"mRound": sets the rounding method used (10 different available)
"aPad": controls padding of the decimal places
"nBracket": controls if negative values are display with brackets when the input does not have focus
"wEmpty": controls input display behavior
"lZero": controls leading zeros behavior
"aForm": controls if default values are formatted on page ready (load)
"anDefault": helper option for ASP.NET post-back
Unit Tests
Unit tests are done with Karma using Mocha and Chai
Code Quality
Code quality is ensured using JSHint
FAQs
An angular directive that utilizes autoNumeric to format an input field as currency as a user types
The npm package angular-currency receives a total of 57 weekly downloads. As such, angular-currency popularity was classified as not popular.
We found that angular-currency 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.