
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
hurp-launch
Advanced tools
An opinionated launcher for hurp-based applications.
Features:
init()
and destroy()
on your App instanceuncaughtException
and unhandledRejection
events and immediately crashes application in such caseSIGINT
and SIGTERM
process events to trigger a graceful shutdown of the application$ npm install hurp-launch
import pino from 'pino';
import { launch } from 'hurp-launch';
import { App } from './app';
const log = pino();
async function main() {
return new App({ log });
}
launch(main, { log });
There is no need to
.catch()
onlaunch
function as it will internally callprocess.exit(1)
on any errors
Logger instance must be compatible with that interface:
interface Log {
info(message: string): void;
fatal(obj: { err: Error }, message: string): void;
}
This approach is inspired by Bunyan. You can use a compatible logger like pino directly or write a simple wrapper around any other you like.
async launch(main: Main, options: Options): Promise<void>
import { launch } from 'hurp-launch';
Executes main
function and launches the application instance it returned.
main
- async function that return an App instance
options
- object containing options
options.log
- logger instance compatible with interface described above
FAQs
Launcher for hurp-based applications
We found that hurp-launch 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.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.