
Research
/Security News
Contagious Interview Campaign Escalates With 67 Malicious npm Packages and New Malware Loader
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.
angular-persian
Advanced tools
AngularPersian is a simple [Angular.js](http://angularjs.org) module which provides a set of useful *Angular Filters* for Persian localization.
AngularPersian is a simple Angular.js module which provides a set of useful Angular Filters for Persian localization.
AngluarPersian uses usablica/persian.js. It also has an additional pDigitWords
method which represents numbers as words.
You can install this package using bower
.
bower install angular-persian
Refer all dependencies in your page in right order.
<script src="bower_components/persianjs/persian.js"></script>
<script src="bower_components/angular-persian/dist/angularpersian.js"></script>
To use this package add ngPersian
as a dependency to your app module, then you can easily use the tools provided in the package.
var app = angular.module('myApp', ['ngPersian', /* Other deps ... */]);
You can use pNumber
filter to convert the digits to persian form :
{{ product.price | pNumber }}
<!-- e.g. Raw value: 36590, Output: ۳۶۵۹۰ -->
You can mix this filter with currency
and number
filters :
{{ product.price | currency | pNumber }}
{{ product.quantity | number | pNumber }}
You can use pDigitWords
filter to convert numbers to persian words.
{{ product.price | pDigitWords }} ریال
<!-- e.g. سیصد و پنجاه هزار ریال -->
You can use pSwitchKey
filter to switch keyboard layouts.
{{ "لخخلمث" | pSwitchKey }}
<!-- output: google -->
{{ 'https://fa.wikipedia.org/wiki/%D8%B5%D9%81%D8%AD%D9%87%D9%94_%D8%A7%D8%B5%D9%84%DB%8C' | pFixURL }}
<!-- https://fa.wikipedia.org/wiki/صفحهٔ_اصلی -->
You can use pArabicNumber
to fix arabic number characters and pArabicChar
to fix arabic characters to persian equivalents.
{{ "علي٤2465" | pArabicNumber | pArabicChar | pNumber }}
<!-- output: علی۴۲۴۶۵ -->
FAQs
AngularPersian is a simple [Angular.js](http://angularjs.org) module which provides a set of useful *Angular Filters* for Persian localization.
The npm package angular-persian receives a total of 7 weekly downloads. As such, angular-persian popularity was classified as not popular.
We found that angular-persian 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
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.