@accubits/currency-converter 中文文档教程
<="" p ="">
Currency Converter
一种货币转换实用程序,可用于计算 te 货币的外汇价值。
Installation
使用以下命令安装软件包:
npm i @accubits/currency-converter
## USAGE
let converter = require('@accubits/currency-converter')
#### 获取可用货币
let converter = require('@accubits/currency-converter')
converter.getCurrencies().then(currencies=>{
console.log(res)
})
Conversions
示例:将 200 美元转换为印度卢比
let converter = require('@accubits/currency-converter')
converter.convert('USD','INR',200).then(res=>{
console.log(res)
})