New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

chinesmoney

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chinesmoney

金额转大写

latest
npmnpm
Version
1.0.5
Version published
Weekly downloads
7
250%
Maintainers
1
Weekly downloads
 
Created
Source

金额转为大写金额

将数字金额/字符串金额转换为大写金额,金额只能保留两位小数

安装

npm install chinesmoney --save

使用

import chinesmoney from 'chinesmoney'

例子

console.log(chinesmoney(2))
// 输出:贰元整
console.log(chinesmoney('2'))
// 输出:贰元整
console.log(chinesmoney(-2))
// 输出:负贰元整

Keywords

chinesMoney

FAQs

Package last updated on 26 Jan 2024

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