Gathering detailed insights and metrics for ecb-euro-exchange-rates
Gathering detailed insights and metrics for ecb-euro-exchange-rates
Gathering detailed insights and metrics for ecb-euro-exchange-rates
Gathering detailed insights and metrics for ecb-euro-exchange-rates
npm install ecb-euro-exchange-rates
87.9
Supply Chain
97.9
Quality
76.7
Maintenance
100
Vulnerability
100
License
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
19 Stars
133 Commits
3 Forks
3 Watching
1 Branches
1 Contributors
Updated on 22 Nov 2024
Minified
Minified + Gzipped
JavaScript (57.88%)
TypeScript (41.27%)
Shell (0.85%)
Cumulative downloads
Total Downloads
Last day
29.8%
2,446
Compared to previous day
Last week
12.6%
11,390
Compared to previous week
Last month
65.3%
33,187
Compared to previous month
Last year
98%
248,040
Compared to previous year
Retrieve Euro foreign exchange reference rates from an API provided by the European Central Bank. This module is intended to run on the server via Node.js, not in the browser.
The API provides exchange rates updated daily for the following currencies:
1$ yarn add ecb-euro-exchange-rates
TS typings are available and you’ll get auto-completion for the supported currencies.
1import * as exchangeRates from 'ecb-euro-exchange-rates'; 2 3const result = await exchangeRates.fetch(); 4console.log('Last update: ' + result.time); 5console.log('USD: ' + result.rates.USD);
Historic rates are available via fetchHistoric90d
(fetches previous 90 days) and fetchHistoric
(fetches all rates back to 1999).
Use Volta.
Install NPM dependencies with yarn
.
To execute the tests, run yarn test
.
For the best development experience, make sure that your editor supports ESLint and EditorConfig.
Linting of code and commit message happens on commit via Husky.
Commit all changes and run the following:
1$ npm login 2$ yarn version --<update_type> 3$ npm publish
… where <update_type>
is one of patch
, minor
, or major
. This will update the package.json
, and create a tagged Git commit with the version number.
Pull requests are very welcome. Feel free to discuss bugs or new features by opening a new issue.
Copyright Philipp Katz, LineUpr GmbH, 2018 – 2024
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
2 existing vulnerabilities detected
Details
Reason
2 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 1
Reason
Found 0/10 approved changesets -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More