
Security News
TypeScript is Porting Its Compiler to Go for 10x Faster Builds
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
udp-transport-winston
Advanced tools
A simple winston transport for UDP in typescript.
Working with winston@3.
Can be used with splunk, logstash (ELK) or any other UDP data inputs.
using npm:
npm install winston udp-transport-winston --save
using yarn:
yarn add winston udp-transport-winston
import winston = require('winston');
import { UDPTransport } from 'udp-transport-winston';
const logger: winston.Logger = winston.createLogger({
level: 'info',
transports: [
new UDPTransport({
host: 'localhost',
port: 1234
})
]
});
or:
import winston = require('winston');
import { UDPTransport } from 'udp-transport-winston';
const logger: winston.Logger = winston.createLogger({
level: 'info'
});
logger.add(new UDPTransport({
host: 'localhost',
port: 1234
}));
class UDPTransport
constructor(options:TransportOptions)
options.host:string
UDP hostoptions.port:number
UDP portoptions.trailingLineFeed:boolean
if to make single lineoptions.trailingLineFeedChar:string
character to separate messagesoptions.format
, options.level
, options.silent
, options.handleExceptions
Made by @raz6tamir
FAQs
A winston transport for UDP in typescript
The npm package udp-transport-winston receives a total of 1,638 weekly downloads. As such, udp-transport-winston popularity was classified as popular.
We found that udp-transport-winston demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.