
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
hapi-good-winston
Advanced tools
A good reporter to send and log events with winston
Use v3.* for hapi >= 18
Use v2.* for version prior to hapi v18
v1.* for version prior to hapi v17$ npm install --save hapi-good-winston
import { Server } from 'hapi';
import winston from 'winston';
import goodWinston from 'hapi-good-winston';
const logger = winston.createLogger({
level: 'info',
format: winston.format.json(),
transports: [new winston.transports.Console()],
});
const server = new Server();
// Set winston minimum log level to debug
// winston.level = 'debug';
// Only the 'response' and 'error' event levels will be overwritten
const goodWinstonOptions = {
levels: {
response: 'debug',
error: 'info',
},
};
const options = {
ops: {
interval: 1000,
},
reporters: {
// Simple and straight forward usage
winston: [goodWinston(logger)],
// Adding some customization configuration
winstonWithLogLevels: [goodWinston(logger, goodWinstonOptions)],
// This example simply illustrates auto loading and instantiation made by good
winston2: [
{
module: 'hapi-good-winston',
name: 'goodWinston',
args: [logger, goodWinstonOptions],
},
],
},
};
server
.register({
plugin: require('good'),
options,
})
.then(() => {
return server.start();
})
.then(() => {
console.info(`Server started at ${server.info.uri}`);
});
FAQs
A hapi good reporter to log events with winston
The npm package hapi-good-winston receives a total of 0 weekly downloads. As such, hapi-good-winston popularity was classified as not popular.
We found that hapi-good-winston 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 discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.