{"id":20163457,"url":"https://github.com/sjinks/winston-mail-lite","last_synced_at":"2025-04-10T00:40:54.721Z","repository":{"id":39098040,"uuid":"189668707","full_name":"sjinks/winston-mail-lite","owner":"sjinks","description":"Yet another email transport for Winston","archived":false,"fork":false,"pushed_at":"2025-03-01T09:16:30.000Z","size":727,"stargazers_count":1,"open_issues_count":1,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-05T05:02:23.399Z","etag":null,"topics":["email","logger","logging","mail","tools","winston","winston-transport"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/winston-mail-lite","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sjinks.png","metadata":{"funding":{"custom":["https://www.paypal.com/donate/?hosted_button_id=SAG6877JDJ3KU","https://send.monobank.ua/jar/7rosVfiwKM"]},"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-05-31T23:15:23.000Z","updated_at":"2025-03-01T09:16:32.000Z","dependencies_parsed_at":"2023-10-23T05:25:03.258Z","dependency_job_id":"f7ffe633-fda6-42f1-b9b5-9d251ccc42a2","html_url":"https://github.com/sjinks/winston-mail-lite","commit_stats":{"total_commits":139,"total_committers":6,"mean_commits":"23.166666666666668","dds":0.460431654676259,"last_synced_commit":"9017f06c1c18e38a76ed4ba711f51c1d1865ff01"},"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjinks%2Fwinston-mail-lite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjinks%2Fwinston-mail-lite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjinks%2Fwinston-mail-lite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjinks%2Fwinston-mail-lite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sjinks","download_url":"https://codeload.github.com/sjinks/winston-mail-lite/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248137996,"owners_count":21053775,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["email","logger","logging","mail","tools","winston","winston-transport"],"created_at":"2024-11-14T00:29:41.282Z","updated_at":"2025-04-10T00:40:54.702Z","avatar_url":"https://github.com/sjinks.png","language":"JavaScript","funding_links":["https://www.paypal.com/donate/?hosted_button_id=SAG6877JDJ3KU","https://send.monobank.ua/jar/7rosVfiwKM"],"categories":[],"sub_categories":[],"readme":"# winston-mail-lite\n\n[![Build and Test](https://github.com/sjinks/winston-mail-lite/actions/workflows/build.yml/badge.svg)](https://github.com/sjinks/winston-mail-lite/actions/workflows/build.yml)\n![NPM](https://img.shields.io/npm/v/winston-mail-lite.svg)\n\nYet another email transport for [winston](https://github.com/flatiron/winston).\n\n## Installation\n\n```sh\n$ npm install winston winston-mail-lite\n```\n\n## Usage\n\n```js\nconst winston = require('winston');\nconst Mail = require('winston-mail-lite');\n\nconst transport = new Mail(options);\nconst logger = winston.createLogger({ transports: [transport] });\n```\n\nThe Mail transport uses [nodemailer](https://nodemailer.com/) behind the scenes.\n\nOptions specific to `winston-mail-lite` are the following:\n  * `transportOptions`: options passed to `createTransport()` ([for SMTP transport](https://nodemailer.com/smtp/), [for other transports](https://nodemailer.com/transports/)). By default, [JSON transport](https://nodemailer.com/transports/stream/#json-transport) is used.\n  * `messageOptions`: options passed to [`transport.sendMail()`](https://nodemailer.com/message/). The most common options are:\n    * `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;\n    * `to`: email address of the recipient; this option is **required**;\n    * `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).\n\n## Differences to winston-mail\n\n`winston-mail-lite` was inspired by [winston-mail](https://github.com/wavded/winston-mail).\n\nThe key differences are:\n  * `winston-mail-lite` has less dependencies;\n  * uses `nodemailer` instead of [emailjs](https://github.com/eleith/emailjs);\n  * has all of its dependencies up-to-date (winston-mail [depends on a package with a vulnerability](https://github.com/wavded/winston-mail/issues/51));\n  * supports only winston \u003e= 3;\n  * has much more simplier codebase.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsjinks%2Fwinston-mail-lite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsjinks%2Fwinston-mail-lite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsjinks%2Fwinston-mail-lite/lists"}