Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
winston-discord-transport
Advanced tools
A custom winston transport for Discord.
This library serves as a Transport
for winston, a popular Nodejs logging library.
$ npm i winston-discord-transport
import winston from 'winston';
import DiscordTransport from 'winston-discord-transport';
const logger = winston.createLogger({
transports: [
new DiscordTransport({
webhook: 'https:/your/discord/webhook',
defaultMeta: { service: 'my_node_service' },
level: 'warn'
})
],
});
logger.log({
level: 'error',
message: 'Error intializing service',
meta: {
additionalKey: 'someValue'
},
error: new Error()
});
There might be some log messages which you might want to raise to a file or console, but not flood your Discord channel.
For such message, just include discord: false
as a key-value in the log message and the transport will drop the message from being sent to Discord.
logger.log({
level: 'warn',
message: 'Some warning message to not send to discord',
discord: false
});
FAQs
A Discord transport for winston logger
The npm package winston-discord-transport receives a total of 221 weekly downloads. As such, winston-discord-transport popularity was classified as not popular.
We found that winston-discord-transport 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’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.