Skip to main content

Import Node.js modules

In addition to the standard synthetic monitoring's Playwright-based scripting environment, Boltic supports many popular Node.js modules to enhance your scripted browsers and scripted API tests.

Import optional modules

To import a supported module, follow the standard importing procedure for it. For example:

  • To import crypto, call:

    var crypto = require("crypto");
  • To import axios, call:

    var axios = require('axios');

Supported Node.js core modules

All Node.js core modules are available for use in your scripted monitors. You can use these modules to enhance and customize your scripted monitors.

Supported third-party modules

NameVersion
@playwright/test1.34.0
ajv8.12.0
axios-retry4.5.0
axios1.7.2
csv-parser3.0.0
lighthouse9.6.8
lodash4.17.21
moment2.30.1
ms2.1.3
net1.0.2
node-fetch-har1.0.1
playwright-har0.2.0
playwright-lighthouse2.2.2
playwright1.46.1
qs6.12.3
uuid9.0.1