Inspectlet as ES module
ES module for Inspectlet.
Install
$ npm install --save inspectlet-es
If using TypeScript, also install the type definitions:
$ npm install --save @types/inspectlet-es
Usage
Pick your favorite:
const { insp, install } = require("inspectlet-es");
import insp, { install } from 'inspectlet-es';
... then:
install(12345678);
From there insp()
can be used as a substitute to __insp.push()
. window.__insp
can also be used if you need access to the raw array:
insp(['identify', "john@example.com"]);
window.__insp.push(['identify', "john@example.com"]);