
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.
enables you to create formal Farsi spoken format for numbers that represent an amount
This NodeJs library enables you to create formal Farsi spoken format for numbers that represent an amount in Rials (IRR).
using npm :
$ npm install iramount --save
const irAmount = require("iramount");
const amount = new irAmount(10239876); // constructor just accepts number
To group digits by three, use
const withDigitGrouping = amount.digitGrouped(); // returns 10,239,876
params :
for Ex :
const withDigitGrouping = amount.digitGrouped("R", "Fa"); // returns ۱۰,۲۳۹,۸۷۶
or
const withDigitGrouping = amount.digitGrouped("T", "Fa", 2); // returns ۱,۰۲,۳۹,۸۷.۶
To display Farsi spoken format in Rials (IRR), use
const rialFormat = amount.farsiFormatRial(); // returns ده میلیون و دویست و سی و نه هزار و هشتصد و هفتاد و شش ریال
To display Farsi spoken format in Tomans (Toman), use
const tomanFormat = amount.farsiFormatToman(); // returns یک میلیون و بیست و سه هزار و نهصد و هشتاد و هفت تومان
// showRial option to show Rials ...
const tomanFormat = amount.farsiFormatToman({ showRial: true }); // returns یک میلیون و بیست و سه هزار و نهصد و هشتاد و هفت تومان و شش ریال
FAQs
enables you to create formal Farsi spoken format for numbers that represent an amount
The npm package iramount receives a total of 2 weekly downloads. As such, iramount popularity was classified as not popular.
We found that iramount 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.