1.0.2 • Published 3 years ago

@exivar/peep v1.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

Exivar Peep

Installation

Install peep using npm or yarn

npm install @exivar/peep
# or
yarn add @exivar/peep

Usage

Create a client conroller using your clientId and token. Obtain your credentials from https://peep.exivar.com.

Using Require

const peep = require('@exivar/peep').default;

Or Using ES Import

import peep from '@exivar/peep';
const client = peep({
  clientId: <clientId>,
  token: <token>
})

Create Log

Create logs using the following commands

  const response = await peep.log({
    type: <log_options>,
    message: <string>,
    data: <object> //meta data
  })

Log Options

log option can have any of the following values

valueDescription
logdefault log
errorerror log
infoinfo log