![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
currency-restapi-currencylayer
Advanced tools
This is a Nodejs wrapper of currencylayer
restful api for currency-rates-store. You need to have an account in currencylayer.com
const live = require('currency-restapi-currencylayer').Live('YOUR_ACCESS_KEY');
const inspect = require('util').inspect;
live((err, rates) {
if (err) return console.error(inspect(err, {colors: true}));
console.log(inspect(rates, {colors: true}));
});
const currlayer = require('currency-restapi-currencylayer')('YOUR_ACCESS_KEY');
const inspect = require('util').inspect;
// check 1 month ago rates
var d = new Date(Date.now() - 1000*60*60*24*30);
currlayer.historical(d, (err, rates)=>{
if (err) return console.error(inspect(err, {colors: true}));
console.log(inspect(rates, {colors: true}));
})
<String>|<Object>
YOUR_ACCESS_KEY
<Array>|<String>
, e.g. ['USD','GBP','EUR']USD
If options is a string, it means YOUR_ACCESS_KEY
.
More info, see Documentation
This is what currency-rates-store bot need, CurrencyRatesStore will use this api to refresh exchange rates.
callback will receive exchange rates like following
{
base: 'USD|EUR|GBP' - tell which currency this rates is based on
rates: {
USD: 1,
GBP: ...
EUR: ...
...
},
ts: {Milliseconds}
}
<DateString>|<Timestamp in milliseonds>|<Date object>
FAQs
nodejs wrapper for currencylayer restful api
The npm package currency-restapi-currencylayer receives a total of 8 weekly downloads. As such, currency-restapi-currencylayer popularity was classified as not popular.
We found that currency-restapi-currencylayer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.