<commit_before>---
categories:
  - "postman"
  - "scripts"
title: "Postman Sandbox API reference"
page_id: "postman_sandbox_api_reference"
warning: false
---

_Note: The functionality described here is exclusive to Postman's native apps for Mac, Windows, and Linux._

### Global functions (pm.*)

### require

**`require(moduleName:String):function → *`**

The `require` function allows you to use the sandbox built-in library modules. The list of available libraries are listed below. The list links to their corresponding documentation.
1. [atob](https://www.npmjs.com/package/atob){:target="_blank"} → v2.0.3
1. [btoa](https://www.npmjs.com/package/btoa){:target="_blank"} → v1.1.2
1. [chai](http://chaijs.com/){:target="_blank"} → v3.5.0
1. [cheerio](https://cheerio.js.org/){:target="_blank"} → v0.22.0
1. [crypto-js](https://www.npmjs.com/package/crypto-js){:target="_blank"} → v3.1.9-1
1. [csv-parse/lib/sync](http://csv.adaltas.com/parse){:target="_blank"} → 1.2.1
1. [lodash](https://lodash.com/){:target="_blank"} → v4.17.2 (when used with require, the inbuilt `_` object is for v3.10.1)
1. [moment](http://momentjs.com/docs/){:target="_blank"} → v2.18.1 (sans locales)
1. [postman-collection](http://www.postmanlabs.com/postman-collection/){:target="_blank"} → v1.2.0
1. [tv4](https://github.com/geraintluff/tv4){:target="_blank"} → v1.2.7
1. [uuid](https://www.npmjs.com/package/uuid){:target="_blank"} → (the module loaded is a shim for original module)
1. [xml2js](https://www.npmjs.com/package/xml2js){:target="_blank"} → 0.4.19

A number of NodeJS modules are also available:
1. path
1. assert
1. buffer
1. util
1. url
1. punycode
1. querystring<commit_msg>Keep upstream master and develop branches in sync.<commit_after>---
categories:
  - "postman"
  - "scripts"
title: "Postman Sandbox API reference"
page_id: "postman_sandbox_api_reference"
warning: false
---

_Note: The functionality described here is exclusive to Postman's native apps for Mac, Windows, and Linux._

### Global functions (pm.*)

### require

**`require(moduleName:String):function → *`**

The `require` function allows you to use the sandbox built-in library modules. The list of available libraries are listed below. The list links to their corresponding documentation.
1. [atob](https://www.npmjs.com/package/atob){:target="_blank"} → v2.0.3
1. [btoa](https://www.npmjs.com/package/btoa){:target="_blank"} → v1.1.2
1. [chai](http://chaijs.com/){:target="_blank"} → v3.5.0
1. [cheerio](https://cheerio.js.org/){:target="_blank"} → v0.22.0
1. [crypto-js](https://www.npmjs.com/package/crypto-js){:target="_blank"} → v3.1.9-1
1. [csv-parse/lib/sync](http://csv.adaltas.com/parse){:target="_blank"} → 1.2.1
1. [lodash](https://lodash.com/){:target="_blank"} → v4.17.4 (when used with require, the inbuilt `_` object is for v3.10.1)
1. [moment](http://momentjs.com/docs/){:target="_blank"} → v2.18.1 (sans locales)
1. [postman-collection](http://www.postmanlabs.com/postman-collection/){:target="_blank"} → v1.2.0
1. [tv4](https://github.com/geraintluff/tv4){:target="_blank"} → v1.2.7
1. [uuid](https://www.npmjs.com/package/uuid){:target="_blank"} → (the module loaded is a shim for original module)
1. [xml2js](https://www.npmjs.com/package/xml2js){:target="_blank"} → 0.4.19

A number of NodeJS modules are also available:
1. path
1. assert
1. buffer
1. util
1. url
1. punycode
1. querystring
{'fraction_non_alphanumeric': 0.19243275199527046, 'fraction_numerical': 0.03842743127401715, 'mean_word_length': 4.611940298507463, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 16, 'lorem ipsum': 0, 'www.': 12, 'xml': 4}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '831002', 'n_tokens_mistral': 1275, 'n_tokens_neox': 1229, 'n_words': 310}