@cinotify/js

1.4.0 • Public • Published

CI Notify Node JS Client

This package is used by the CI Notify GitHub Action.

Installation

$ npm install -s @cinotify/js

Usage

const {email} = require("@cinotify/js");
const mime = require('mime');

email({
  to: 'example@example.com',
  subject: 'hello',
  body: 'hey there from js',
  attachments: [
    {
      content: Buffer.from("Hello, World!").toString('base64'),
      type: mime.getType("txt"),
      filename: "example.txt"
    }
  ]
})

Dependencies (2)

Dev Dependencies (1)

Package Sidebar

Install

npm i @cinotify/js

Weekly Downloads

1

Version

1.4.0

License

ISC

Unpacked Size

1.48 kB

Total Files

3

Last publish

Collaborators

  • jshawl