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

currency-rate

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

currency-rate

中国银行公布的美元汇率


Version published
Maintainers
1
Created
Source

currency-rate Version

爬取 中国银行-各类货币兑美元电汇牌价的美元汇率

install

$ npm install --save currency-rate

Setup

$ npm install

Test

$ node index.test.js

or checkout index.test.js

Usage

const currency_rate = require('./index')

currency_rate.get(function(result){
    console.log(result)
})

结果示例

[
  { title: '欧罗兑美元',
    from: 'EUR',
    to: 'USD',
    in: '1.0418000',
    out: '1.0480000' },
  { title: '英镑兑美元',
    from: 'GBP',
    to: 'USD',
    in: '1.2228300',
    out: '1.2311700' },
  { title: '纽西兰元兑美元',
    from: 'NZD',
    to: 'USD',
    in: '0.6906500',
    out: '0.6954500' } 
]    

Keywords

FAQs

Package last updated on 29 Dec 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