{"id":19196965,"url":"https://github.com/jitesoft/yolog-email-plugin","last_synced_at":"2026-03-01T15:34:13.078Z","repository":{"id":35817551,"uuid":"217916753","full_name":"jitesoft/yolog-email-plugin","owner":"jitesoft","description":"Email plugin for @jitesoft/yolog package.","archived":false,"fork":false,"pushed_at":"2025-10-08T11:10:29.000Z","size":2216,"stargazers_count":2,"open_issues_count":10,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-08T13:16:43.912Z","etag":null,"topics":["email","hacktoberfest","jitesoft","logging","nodejs","plugin","yolog"],"latest_commit_sha":null,"homepage":"","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/jitesoft.png","metadata":{"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,"zenodo":null}},"created_at":"2019-10-27T21:07:41.000Z","updated_at":"2023-01-31T17:40:01.000Z","dependencies_parsed_at":"2025-04-15T02:51:04.113Z","dependency_job_id":null,"html_url":"https://github.com/jitesoft/yolog-email-plugin","commit_stats":{"total_commits":46,"total_committers":2,"mean_commits":23.0,"dds":"0.10869565217391308","last_synced_commit":"2814e789ba3def70be50ffb59765a1f1eb20d440"},"previous_names":[],"tags_count":29,"template":false,"template_full_name":null,"purl":"pkg:github/jitesoft/yolog-email-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jitesoft%2Fyolog-email-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jitesoft%2Fyolog-email-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jitesoft%2Fyolog-email-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jitesoft%2Fyolog-email-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jitesoft","download_url":"https://codeload.github.com/jitesoft/yolog-email-plugin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jitesoft%2Fyolog-email-plugin/sbom","scorecard":{"id":521745,"data":{"date":"2025-08-11","repo":{"name":"github.com/jitesoft/yolog-email-plugin","commit":"d6a0aacc2378bed754cd707b340155a18ecf5a1e"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.6,"checks":[{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Code-Review","score":0,"reason":"Found 0/27 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Security-Policy","score":10,"reason":"security policy file detected","details":["Info: security policy file detected: github.com/jitesoft/.github/SECURITY.md:1","Info: Found linked content: github.com/jitesoft/.github/SECURITY.md:1","Info: Found disclosure, vulnerability, and/or timelines in security policy: github.com/jitesoft/.github/SECURITY.md:1","Info: Found text in security policy: github.com/jitesoft/.github/SECURITY.md:1"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 11 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":4,"reason":"6 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-4vvj-4cpr-p986"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-20T03:11:53.102Z","repository_id":35817551,"created_at":"2025-08-20T03:11:53.102Z","updated_at":"2025-08-20T03:11:53.102Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29973320,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T15:29:09.406Z","status":"ssl_error","status_checked_at":"2026-03-01T15:28:28.558Z","response_time":124,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","hacktoberfest","jitesoft","logging","nodejs","plugin","yolog"],"created_at":"2024-11-09T12:15:01.327Z","updated_at":"2026-03-01T15:34:13.057Z","avatar_url":"https://github.com/jitesoft.png","language":"JavaScript","funding_links":["https://opencollective.com/jitesoft-open-source"],"categories":[],"sub_categories":[],"readme":"# Yolog email plugin\n\n[![npm (scoped)](https://img.shields.io/npm/v/@jitesoft/yolog-email-plugin)](https://www.npmjs.com/package/@jitesoft/yolog-email-plugin)\n[![Known Vulnerabilities](https://snyk.io/test/npm/@jitesoft/yolog-email-plugin/badge.svg)](https://snyk.io/test/npm/@jitesoft/yolog-email-plugin)\n[![pipeline status](https://gitlab.com/jitesoft/open-source/javascript/yolog-plugins/email/badges/master/pipeline.svg)](https://gitlab.com/jitesoft/open-source/javascript/yolog-plugins/email/commits/master)\n[![coverage report](https://gitlab.com/jitesoft/open-source/javascript/yolog-plugins/email/badges/master/coverage.svg)](https://gitlab.com/jitesoft/open-source/javascript/yolog-plugins/email/commits/master)\n[![npm](https://img.shields.io/npm/dt/@jitesoft/yolog-email-plugin)](https://www.npmjs.com/package/@jitesoft/yolog-email-plugin)\n[![Back project](https://img.shields.io/badge/Open%20Collective-Tip%20the%20devs!-blue.svg)](https://opencollective.com/jitesoft-open-source)\n\n\nPlugin for the [`@jitesoft/yolog`](https://www.npmjs.com/package/@jitesoft/yolog) logger to post logs and errors to a set of email addresses.  \nThe plugin is backed by [`nodemailer`](https://nodemailer.com/) and is able to use any transporter that nodemailer supports!\n\nDue to the nature of the plugin and the dependency on nodemailer, this plugin is only supported on node-like platforms, not browser.\n\n### Default transporter\n\nIf no transporter is passed to the Plugin through the constructor, a default `sendmail` transporter will be\nadded. If sendmail does not exist on the machine, the plugin will likely crash on logging messages.\n\n### Templates\n\nThere are default templates set for `HTML`, `Text` and `Subject`.\nSubject template is set through the constructor, while the text and html templates can\nbe changed with the `setHmlTemplate` and `setTextTemplate` methods in the instance.\n\nParameters that will be replaced are currently the following:\n\n```\nTAG        - The message tag/type.\nDATETIME   - Date as ISO string.\nMESSAGE    - Log message.\nSTACKTRACE - Stack trace (from yolog.log and upwards).\n```\n\nEach parameter uses `{PARAMETER}` in the templates.\n\nDefault HTML template:\n```html\n\u003cdiv\u003e\n    \u003cspan style=\"font-size: 1.4em; text-decoration: underline;\"\u003e{TAG} message logged.\u003c/span\u003e\n    \u003cpre\u003eAt: {DATETIME}\u003c/pre\u003e\n    \u003cdiv style=\"padding-top: 1em;\"\u003e\n        \u003cspan style=\"text-decoration: underline; line-height: 0.4em;\"\u003eMessage:\u003c/span\u003e\n        \u003cp\u003e{MESSAGE}\u003c/p\u003e\n    \u003c/div\u003e\n    \u003cpre style=\"border: 1px black dotted; font-size: 1em; width: max-content; padding: 1em 3em;\"\u003e{STACKTRACE}\u003c/pre\u003e\n    \u003cspan style=\"font-size: 0.6em;\"\u003eThis message was logged via the \u003ca style=\"text-decoration: none;\" href=\"https://www.npmjs.com/package/@jitesoft/yolog\"\u003e\u003ccode\u003e@jitesoft/yolog\u003c/code\u003e\u003c/a\u003e email plugin.\u003c/span\u003e\n\u003c/div\u003e\n```\n\nDefault text template:\n\n```text\nLogged a log message with {TAG} tag at {DATETIME}.\\n\\nMessage: {MESSAGE}\\n\\nCallstack:\\n{STACKTRACE}\n```\n\n## Usage:\n\nInstall with your favorite package manager!\n\n```bash\nnpm i @jitesoft/yolog-email-plugin --save\nyarn add @jitesoft/yolog-email-plugin\n```\n\nUse it!\n\n```javascript\nimport EmailPlugin from '@jitesoft/yolog-email-plugin';\nimport { logger } from '@jitesoft/yolog';\nimport nodemailer from 'nodemailer';\nconst plugin = new EmailPlugin(['target@target.target'], 'sender@sender.send', 'Subject!', [\n  nodemailer.createTransport({\n    /* ... */\n  })\n]);\nlogger.addPlugin(plugin);\nlogger.error('YOU GOT MAIL!');\n```\n\n### Recommendation\n\nTurn off lesser levels of logging for the plugin so that your inbox is not filled with debug messages and your smtp server\ngets spam listed instantly!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjitesoft%2Fyolog-email-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjitesoft%2Fyolog-email-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjitesoft%2Fyolog-email-plugin/lists"}