Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

chinese-currency-formatter

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chinese-currency-formatter

获取金额的中文大写结果的JS组件

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

中文的金额是一个有丰富意义的场景,本组件用于将金额显示为中文大写的金额。

如何使用

const ChinesesCurrencyFormatter = require('chinese-currency-formatter')

const chsCurrency = ChinesesCurrencyFormatter(987650321.46) // 玖亿捌仟柒佰陆拾伍万零叁佰贰拾壹圆肆角陆分

更多的调用示例可参考单元测试

变更

1.0.0 自该版本起,不再作为React组件存在,因为其方法其实完全可以脱离React,也方便更普通的场景调用。

如果您使用了之前的版本,给您带来不便,还请谅解。

Keywords

FAQs

Package last updated on 14 Aug 2016

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc