
Product
Introducing Socket Fix for Safe, Automated Dependency Upgrades
Automatically fix and test dependency updates with socket fix—a new CLI tool that turns CVE alerts into safe, automated upgrades.
cached-open-exchange-rates
Advanced tools
Open Exchange Rates SDK that caches results to avoid hitting the usage limit
Open Exchange Rates SDK that caches results to avoid hitting the usage limit
const coxr = require('cached-open-exchange-rates');
const oxr = coxr(
// Cache configurations
{
path: '.open-exchange-rates-cache.json', // cache file, for persistance even on restarts
duration: 'PT12H' // 12 hour cache, must be an ISO duration -- https://en.wikipedia.org/wiki/ISO_8601#Durations
},
// Open Exchange Rate configurations
// This object is passed to the OXR SDK -- https://github.com/openexchangerates/npm-exchange-rates
{
app_id: '1234...' // Open Exchange Rate App ID
}
);
await oxr.request(); // Directly requests from OXR
await oxr.cached(); // Tries the cache, throws an error if there is no cached value
await oxr.cachedOrRequest(); // Tries the cache and requests from OXR if is not present
FAQs
Open Exchange Rates SDK that caches results to avoid hitting the usage limit
The npm package cached-open-exchange-rates receives a total of 3 weekly downloads. As such, cached-open-exchange-rates popularity was classified as not popular.
We found that cached-open-exchange-rates 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.
Product
Automatically fix and test dependency updates with socket fix—a new CLI tool that turns CVE alerts into safe, automated upgrades.
Security News
CISA denies CVE funding issues amid backlash over a new CVE foundation formed by board members, raising concerns about transparency and program governance.
Product
We’re excited to announce a powerful new capability in Socket: historical data and enhanced analytics.