Skip to content

Latest commit

 

History

History
29 lines (23 loc) · 524 Bytes

README.md

File metadata and controls

29 lines (23 loc) · 524 Bytes

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: '[email protected]',
  subject: 'hello',
  body: 'hey there from js',
  attachments: [
    {
      content: Buffer.from("Hello, World!").toString('base64'),
      type: mime.getType("txt"),
      filename: "example.txt"
    }
  ]
})