{"_id":"@buujs/sati-nodemailer","name":"@buujs/sati-nodemailer","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@buujs/sati-nodemailer","version":"0.1.0","license":"MIT","author":{"name":"Forte Zhuo"},"repository":{"type":"git","url":"git+https://github.com/buu-js/sati.git"},"type":"module","main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}},"./smtp":{"import":{"types":"./dist/smtp/index.d.ts","default":"./dist/smtp/index.js"},"require":{"types":"./dist/smtp/index.d.cts","default":"./dist/smtp/index.cjs"}},"./package.json":"./package.json"},"scripts":{"dev":"tsdx dev","build":"tsdx build","test":"vitest run","test:watch":"vitest","lint":"tsdx lint","format":"tsdx format","format:check":"tsdx format --check","typecheck":"tsdx typecheck","prepublishOnly":"pnpm build"},"devDependencies":{"@buujs/sati-utils":"workspace:*"},"peerDependencies":{"@buujs/sati":"workspace:*","@types/nodemailer":"^8.0.1","nodemailer":"^9.0.3"},"engines":{"node":">=20"},"gitHead":"e3307e7607d3c8489e5423bf61b73a2904a7f3ad","_id":"@buujs/sati-nodemailer@0.1.0","description":"An elegant, type-safe mailer integration for the SATI middleware ecosystem, powered by Nodemailer.","bugs":{"url":"https://github.com/buu-js/sati/issues"},"homepage":"https://github.com/buu-js/sati#readme","_nodeVersion":"24.14.1","_npmVersion":"11.11.0","dist":{"integrity":"sha512-qzPB+7ovi7zJFGkoJW2WZgcS9KkrFq9ZbNsXi+4XuL6JNska5ayaYgE7yPIk1JS2TIWeBs8ONa55y6PB0fSV/Q==","shasum":"99d9480fa4d4f1c1d6352af379bc8ea5e23e7fec","tarball":"https://registry.npmjs.org/@buujs/sati-nodemailer/-/sati-nodemailer-0.1.0.tgz","fileCount":14,"unpackedSize":8360,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCtR7MqODMRcBrn0JhNqPAar1qgjKWL4jVd8AzZKuSDxAIhANCOq70igbFsMJg3R5Cp0qOS93OJSqEeKKkeOOTnSqJR"}]},"_npmUser":{"name":"forte.zhuo","email":"forte.zhuo@gmail.com"},"directories":{},"maintainers":[{"name":"forte.zhuo","email":"forte.zhuo@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/sati-nodemailer_0.1.0_1784094551634_0.1116362402220119"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-15T05:49:11.438Z","0.1.0":"2026-07-15T05:49:11.758Z","modified":"2026-07-15T05:49:12.013Z"},"maintainers":[{"name":"forte.zhuo","email":"forte.zhuo@gmail.com"}],"description":"An elegant, type-safe mailer integration for the SATI middleware ecosystem, powered by Nodemailer.","homepage":"https://github.com/buu-js/sati#readme","repository":{"type":"git","url":"git+https://github.com/buu-js/sati.git"},"author":{"name":"Forte Zhuo"},"bugs":{"url":"https://github.com/buu-js/sati/issues"},"license":"MIT","readme":"# 👻 Buu SATI Nodemailer  (`@buujs/sati-nodemailer`)\nAn elegant, type-safe mailer integration for the SATI middleware ecosystem, powered by Nodemailer.\n\nInject, configure, and manage enterprise-grade SMTP transporters effortlessly within your unified Hono architecture with full runtime safety and zero boilerplate.\n\n---\n\n## Features\n\n* 🔌 **Seamless Hono Context Injection**: Automatically bind custom mailer instances globally or per-route into your Hono runtime context (`c.var.mailer`).\n* 🛡️ **Environment-Aware Transport Setup**: Flexible configurations tailored out-of-the-box for both local development and hardened TLS production workloads (automatic STARTTLS vs Explicit SSL handling).\n* ⚙️ **Modular Adapter Pattern**: Built to cleanly decouple mailer implementations from core routing logic, leaving room for alternative configurations[cite: 1].\n\n---\n\n## Installation\n\n```sh\npnpm add @buujs/sati-nodemailer nodemailer hono\npnpm add -D @types/nodemailer\n```\n\n---\n\n### Usage\n\n```ts\nimport { Hono } from \"hono\";\nimport { mailer } from \"@buujs/sati-nodemailer\";\nimport { createSMTPMailer } from \"@buujs/sati-nodemailer/smtp\";\n\nconst app = new Hono();\n\n// Configure the SMTP transport instance\nconst transport = createSMTPMailer({\n  host: \"smtp.example.com\",\n  port: 587,\n  user: \"user@example.com\",\n  password: \"securepassword\",\n  from: \"noreply@example.com\",\n  principal: \"My App Team\",\n  isProduction: process.env.NODE_ENV === \"production\"\n});\n\n// Register the mailer middleware globally or to specific sub-routers\napp.use(\"*\", mailer(transport));\n```","readmeFilename":"README.md","_rev":"1-73d81de4b0e6282f98708fc9e898627a"}