
Security News
TC39 Advances 11 Proposals for Math Precision, Binary APIs, and More
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.
LRU cache fronted superagent
var chaps = new Chaps({
hostname: 'localhost',
timeout: 2000,
cache: true, // default as of @2.0.0, set to false to disable
LRU: { // implies cache: true
// options passed to LRU object, see LRU lib for more options
// default LRU values chaps provides
length: function () { return 1; },
max: 100,
maxAge: 60000 // cache for 1 minute
},
cacheKeyExcludes: ['query.foo', 'query.bar.aaa'], // sting dot notation of object values to not impact caching routes
stringify: ['query.foo'] // string dot notation of object values to JSON.stringify before sending request
});
chaps.get({
url: '/foo' // url to hit
}, function(err, res){
});
FAQs
cache fronted http api caller
The npm package chaps receives a total of 3 weekly downloads. As such, chaps popularity was classified as not popular.
We found that chaps demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.