
Security News
Django Joins curl in Pushing Back on AI Slop Security Reports
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
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
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.
Security News
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.