### Install winston-mail-lite with npm Source: https://github.com/sjinks/winston-mail-lite/blob/master/README.md Instructions to install the winston-mail-lite package and its peer dependency, winston, using the npm package manager. ```sh $ npm install winston winston-mail-lite ``` -------------------------------- ### Basic Usage of winston-mail-lite Transport Source: https://github.com/sjinks/winston-mail-lite/blob/master/README.md Demonstrates how to import winston and winston-mail-lite, create a new Mail transport instance with placeholder options, and integrate it into a Winston logger's transports array. ```js const winston = require('winston'); const Mail = require('winston-mail-lite'); const transport = new Mail(options); const logger = winston.createLogger({ transports: [transport] }); ``` -------------------------------- ### winston-mail-lite Mail Transport Options API Reference Source: https://github.com/sjinks/winston-mail-lite/blob/master/README.md Detailed API documentation for the configuration options available when initializing the `winston-mail-lite` Mail transport, covering both Nodemailer transport options and email message options. ```APIDOC Mail Transport Options: transportOptions: object Description: Options passed directly to Nodemailer's createTransport() method. Default: Uses Nodemailer's JSON transport. References: - SMTP transport: https://nodemailer.com/smtp/ - Other transports: https://nodemailer.com/transports/ messageOptions: object Description: Options passed to Nodemailer's transport.sendMail() method. Reference: https://nodemailer.com/message/ Properties: from: string Description: Email address of the sender. Default: winston@[server-host-name] (where server-host-name is os.hostname()). to: string Description: Email address of the recipient. Required: Yes. subject: string Description: The subject of the email. Default: Winston Message. Placeholders: Supports {{ level }} (log severity) and {{ message }} (first line of log message). ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.