Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eldoy/norgesbank
Norges Bank API Currency Conversion
https://github.com/eldoy/norgesbank
Last synced: 6 days ago
JSON representation
Norges Bank API Currency Conversion
- Host: GitHub
- URL: https://github.com/eldoy/norgesbank
- Owner: eldoy
- License: mit
- Created: 2022-05-28T02:39:44.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-05-28T02:48:34.000Z (over 2 years ago)
- Last Synced: 2024-08-11T09:53:02.770Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 15.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Norges Bank
Currently just fetches the exchange rate between two currencies at a given date.
### Install
```
npm i norgesbank
```### Usage
```js
const norgesbank = require('norgesbank')const options = {
to: 'NOK',
from: 'USD',
date: new Date() - 1 // yesterday is the default
}const rate = norgesbank(options)
// 9.3453
```MIT Licensed. Enjoy!