
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

With easync you can define from simple to complex flows that involve loops, conditions and more. You can arrange user interactions, asynchronous server calls, process data in different steps or whatever you want to organize in a declarative way.
Just follow 3 steps:
Install easync with npm i easync
Define your flow with inner tasks and conditions
import easync, { Loop, Switch } from "easync";
const flow = () => {
const asyncCondition = async () => {
await sleep(1000);
return true;
};
const condition = () => {
return "Luke";
};
const asyncTask = async () => {
await sleep(1000);
return 1;
};
const task = () => {
return 1;
};
return easync.create`
<${Loop} while=${asyncCondition}>
<${Switch} condition=${condition}>
<${asyncTask} case="Ash" />
<${task} case="Luke" />
<//>
<//>
`;
};
For learning purposes we defined a flow with a Loop that iterates over a Switch that chooses the second Task. In this example we added an async function sleep before resolving the async task and the async condition to expose the asynchronous capabilities.
Now you can work with sync and async tasks and conditions!
easync.start(flow);
If you want to learn more about all the things you can do with easync, check the User Guide
const { easync, Loop, Switch } = require("easync");
You can use it in a Node server environment importing the library as you can see in the above example.
easync is MIT licensed.
FAQs
A declarative approach to execute asynchronous tasks in javascript
We found that easync 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.