1.0.2 • Published 4 years ago
@exivar/peep v1.0.2
Exivar Peep
Installation
Install peep using npm or yarn
npm install @exivar/peep
# or
yarn add @exivar/peepUsage
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 |