Tests and Script
Script
Inbuilt Libraries

Inbuilt Libraries

Bruno supports CommonJS syntax (require) for importing libraries. ES Modules (import/export) are not supported at this time.

Below are the list of inbuilt libraries that you can require in your scripts.

Note: node-fetch is not available in Safe Mode.

Example:

const { nanoid } = require("nanoid");
 
req.setHeader("transaction-id", nanoid());