Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@promise-watch/smtp

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@promise-watch/smtp - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

README.md

8

package.json
{
"name": "@promise-watch/smtp",
"version": "0.0.3",
"version": "0.0.4",
"main": "dist/index.js",

@@ -11,3 +11,3 @@ "author": "Jason Raimondi <jason@raimondi.us> (https://jasonraimondi.com)",

"dependencies": {
"@promise-watch/core": "^0.0.2",
"@promise-watch/core": "^0.0.4",
"nodemailer": "^6.7.2"

@@ -24,5 +24,7 @@ },

"scripts": {
"prebuild": "rm -rf ./dist",
"build": "tsc",
"prepublish": "pnpm build"
}
},
"readme": "# @promise-watch/smtp\n\n## Installation\n\n```bash\npnpm add @promise-watch/smtp\n```\n\n## Usage\n\n```typescript\nimport { SmtpNotifier } from \"@promise-watch/smtp\";\nimport type SMTPTransport from \"nodemailer/lib/smtp-transport\";\nimport type Mail from \"nodemailer/lib/mailer\";\n\nconst smtpOptions: SMTPTransport | SMTPTransport.Options | string = {\n host: process.env.SMTP_HOST,\n port: Number(process.env.SMTP_PORT) || 587,\n};\n\nconst mailOptions: Mail.Options = {\n to: process.env.SMTP_TO,\n from: process.env.SMTP_FROM,\n};\n\nconst options: ExecuteOptions = {\n dir: __dirname,\n errorNotifiers: [\n new SmtpNotifier(smtpOptions, mailOptions),\n ],\n};\n```"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc