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
Name | Version |
---|---|
@playwright/test | 1.34.0 |
ajv | 8.12.0 |
axios-retry | 4.5.0 |
axios | 1.7.2 |
csv-parser | 3.0.0 |
lighthouse | 9.6.8 |
lodash | 4.17.21 |
moment | 2.30.1 |
ms | 2.1.3 |
net | 1.0.2 |
node-fetch-har | 1.0.1 |
playwright-har | 0.2.0 |
playwright-lighthouse | 2.2.2 |
playwright | 1.46.1 |
qs | 6.12.3 |
uuid | 9.0.1 |