0.0.2 • Published 9 months ago

dashlog v0.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months ago

Dashlog

Official wrapper over the dashlog.app api

npm install dashlog
import { createDashlog } from "dashlog";

const dash = createDashlog("<YOUR-API-KEY>");

const response = await dash.log({
  project: "MyProject",  // string - required
  channel: "Users",  // string - required

  title: "New User",                           // string - required
  description: "John Doe created an account",  // string - optionnal

  data: {                         // Record<string, string | number | boolean> - optionnal
    email: "john.doe@dashlog.app",  // Values can be
    username: "@johndoe",           // strings,
    age: 29,                        // numbers,
    premium: true,                  // or booleans
  },

  notify: true,  // boolean - optionnal - send log by email if true
});

console.log(response);  // { status: 200, message: 'log added successfully' }
0.0.2

9 months ago

0.0.1

9 months ago