Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
chinese-currency-formatter
Advanced tools
中文的金额是一个有丰富意义的场景,本组件用于将金额显示为中文大写的金额。
const ChinesesCurrencyFormatter = require('chinese-currency-formatter')
const chsCurrency = ChinesesCurrencyFormatter(987650321.46) // 玖亿捌仟柒佰陆拾伍万零叁佰贰拾壹圆肆角陆分
更多的调用示例可参考单元测试
1.0.0 自该版本起,不再作为React组件存在,因为其方法其实完全可以脱离React,也方便更普通的场景调用。
如果您使用了之前的版本,给您带来不便,还请谅解。
FAQs
获取金额的中文大写结果的JS组件
We found that chinese-currency-formatter 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
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.