Security News
cURL Project and Go Security Teams Reject CVSS as Broken
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
@sealsystems/droddel
Advanced tools
Serialize asynchronous calls.
$ npm install @sealsystems/droddel
First you need to add a reference to seal-droddel within your application.
const droddel = require('@sealsystems/droddel');
To actually throttle a function, call droddel
and hand over the function that shall be throttled.
E.g., if you want to serialize read access to a file, hand over a function that does the actual reading and returns its result as a promise:
const readFile = util.promisify(fs.readFile);
const throttledRead = droddel(
async () => await readFile('/etc/passwd'));
To then read the file, simply call throttledRead
:
const result = await throttledRead();
If you call throttledRead
while it is already being run, the new call gets delayed.
To build this module use roboter.
$ bot
FAQs
Serialize asynchronous calls
The npm package @sealsystems/droddel receives a total of 13 weekly downloads. As such, @sealsystems/droddel popularity was classified as not popular.
We found that @sealsystems/droddel demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.