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

chopinjs

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chopinjs

A simpler SMTP client for Node.js backend eviroment.

  • 1.0.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

:blue_heart: Chopin JS

A simpler SMTP client for Node.js backend eviroment.

Getting Started

You can get the library by cloning it like follow bellow:

npm install chopinjs

After that, you can import the library on your node enviroment:

import Chopin from 'chopinjs';

Client

The client can be configured like bellow:

import Chopin from 'chopinjs'  

const config = {
  host: 'mail.gmail.com',
  port: 587,
  secure: false, // true for 465, false for other ports
  auth: {
    user: 'user@email.com',
    pass: 'foo@bar'
  }
};
const client = new Chopin(config);

Sending a email

To send a email, you can do like follow the example bellow:

const client = new Chopin();

const email = await client.send({
  from: 'contact@domain.com',
  to: 'example@email.com',
  subject: 'Hello',
  html: '<h1>Contact support</h1>'
});

Keywords

FAQs

Package last updated on 26 Jun 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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