inspectlet-es
v1.0.6
Published
ES module for Inspectlet.
Downloads
1,381
Maintainers
Readme
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); // Substitute your ID
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:
// Equivalent statements :
insp(['identify', "[email protected]"]);
window.__insp.push(['identify', "[email protected]"]);