Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
async-ware
Advanced tools
Readme
The programming idea(🧅 onion model) of koa middleware is great, it can be applied to more situations.
We need one class to include that all, so here comes this lib
ware.run()
's promisenpm i async-ware -S
const Middleware = require('async-ware')
const ware = new Middleware()
ware.use(async (a, b, next) => {
console.log('middleware 1a ***', ++a.a, a)
await next()
console.log('middleware 1b ***', ++b.b, b)
})
ware.use(async (a, b, next) => {
console.log('middleware 2a ***', ++a.a, a)
await sleep(200)
await next()
await sleep(300)
console.log('middleware 2b ***', ++b.b, b)
})
ware.use(async (a, b, next) => {
console.log('middleware 3a ***', ++a.a, a)
await sleep(400)
await next()
await sleep(500)
console.log('middleware 3b ***', ++b.b, b)
})
// The middlewares above, function's arguments a and b is the `run` function's arguments
// You can use variadic arguments here
ware.run({ a: 10 }, { b: 20 })
.then(console.log)
.catch(console.error)
MIT
FAQs
A class for easily writing js middlewares
The npm package async-ware receives a total of 1 weekly downloads. As such, async-ware popularity was classified as not popular.
We found that async-ware 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.