Home / Companies / Postman / Blog / Post Details
Content Deep Dive

Adding External Libraries in Postman

Blog post from Postman

Post Details
Company
Date Published
Author
Sean Keegan
Word Count
793
Company Posts That Month
17
Language
English
Hacker News Points
-
Post removed?
No
Summary

Postman has enhanced its capabilities by allowing users to import external JavaScript libraries into the Postman sandbox, enabling more extensive testing and workflow control. The sandbox already includes popular JavaScript and NodeJS modules like moment, lodash, and querystring, which can be utilized using the require method. For libraries not included in the sandbox, users can import them via a CDN or by pre-loading the library code into a collection variable. The process involves converting library code to a string and evaluating it using the eval function, although caution is advised due to potential security risks. Alternatively, users can store the library code in a variable and access it through an IIFE, avoiding additional requests. The Postman Learning Center provides documentation on available libraries, and a practical example using Day.js demonstrates how to implement this functionality. Users are encouraged to explore Postman's public workspace to experiment with these methods and enhance their testing processes.

Trends Found in this Post

No tracked trend matches for this post yet.

Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.