1.0.6 • Published 2 years ago
inspectlet-es v1.0.6
Inspectlet as ES module
ES module for Inspectlet.
Install
$ npm install --save inspectlet-esIf using TypeScript, also install the type definitions:
$ npm install --save @types/inspectlet-esUsage
Pick your favorite:
const { insp, install } = require("inspectlet-es");import insp, { install } from 'inspectlet-es';... then:
install(12345678); // Substitute your IDFrom 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', "john@example.com"]);
window.__insp.push(['identify', "john@example.com"]);