
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@greenrenge/gracefully
Advanced tools
liveness and readiness wrapper using lightship for node.js
A lightship module for support kubernetes liveness and readiness
This module is a simple wrapper of the original lightship library which helps to easily initialize the ready callback functions for multiple source of ready
interconnected services being used by the application (eg. database) or configuration loading of the application.
createReadiness
which help to split lightship signalReady
to multiple functions/health
/live
and /ready
as the original lightship does but listen on port 13000
by defaultenableLog
option to print lightship logsrandomPortOnLocal
to reserve random port behavior when the process is run on local as the original lightship does, default to false
npm install --save @greenrenge/gracefully
import createLightship from "@greenrenge/gracefully"
const { createReadiness } = await createLightship()
const [mongooseDbReady, expressReady, senecaReady] = createReadiness(3)
// for mongoose connection
mongoose.connect(/* connectionString */)
mongoose.connection.on("connected", () => mongooseDbReady())
// for express
const app = express()
app.listen(3000, () => expressReady())
// for seneca
require("seneca")({ some_options: 123 })
.use("community-plugin-1", { some_config: SOME_CONFIG })
.use("community-plugin-2")
.listen(/* ... */)
.client(/* ... */)
.ready(() => senecaReady())
in case of making service back to not ready state, we get functions by 2 ways ..
const [mongooseDbReady] = createReadiness()
// first way, return from ready function call
const mongooseNotReady = mongooseDbReady()
mongooseNotReady()
// second way, by property `toNotReady` of ready function
mongooseDbReady.toNotReady()
MIT © Greenrenge
FAQs
liveness and readiness wrapper using lightship for node.js
The npm package @greenrenge/gracefully receives a total of 374 weekly downloads. As such, @greenrenge/gracefully popularity was classified as not popular.
We found that @greenrenge/gracefully demonstrated a healthy version release cadence and project activity because the last version was released less than 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.