@exivar/peep
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

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

value Description
log default log
error error log
info info log

Dependencies (3)

Dev Dependencies (10)

Package Sidebar

Install

npm i @exivar/peep

Weekly Downloads

0

Version

1.0.2

License

ISC

Unpacked Size

18.8 kB

Total Files

32

Last publish

Collaborators

  • exivar