Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

inspectlet-es

idmadj1.7kMIT1.0.6TypeScript support: definitely-typed

ES module for Inspectlet.

inspectlet, session, replay, recording, heatmap, a/b, testing, analytics, error, logging, tracking, es, es6, module, npm, package

readme

Inspectlet as ES module

npm npm bundle size (minified)

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', "john@example.com"]);
window.__insp.push(['identify', "john@example.com"]);