Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 670 Bytes

require-additional-js-libraries-in-postman.md

File metadata and controls

21 lines (15 loc) · 670 Bytes

Require Additional JS Libraries In Postman

When writing pre-request scripts and test scripts as part of a Postman request, you aren't limited to vanilla JavaScript. There are a handful of libraries that can be required where needed.

This short list of available libraries includes cherrio, lodash, and moment.

To pull one of these into a particular script, use the standard require feature:

var moment = require('moment');

var now = moment();

For a full list of what is available, check out Postman's Sandbox API Reference.