New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

winston-mail-lite

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

winston-mail-lite

An email transport for winston

latest
Source
npmnpm
Version
1.2.0
Version published
Weekly downloads
235
-5.62%
Maintainers
1
Weekly downloads
 
Created
Source

winston-mail-lite

Build and Test NPM

Yet another email transport for winston.

Installation

$ npm install winston winston-mail-lite

Usage

const winston = require('winston');
const Mail = require('winston-mail-lite');

const transport = new Mail(options);
const logger = winston.createLogger({ transports: [transport] });

The Mail transport uses nodemailer behind the scenes.

Options specific to winston-mail-lite are the following:

  • transportOptions: options passed to createTransport() (for SMTP transport, for other transports). By default, JSON transport is used.
  • messageOptions: options passed to transport.sendMail(). The most common options are:
    • from: email address of the sender; if nothing is provided, defaults to winston@[server-host-name], where server-host-name is what os.hostname() returns;
    • to: email address of the recipient; this option is required;
    • subject: the subject of the email; defaults to Winston Message. Supports {{ level }} and {{ message }} placeholders (logs severity and the first line of the message respectively).

Differences to winston-mail

winston-mail-lite was inspired by winston-mail.

The key differences are:

Keywords

logging

FAQs

Package last updated on 15 Jun 2025

Did you know?

Socket

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.

Install

Related posts