Is there a easy way to define functions to use across multiple requests that is not the eval

hi all, I’m here to see if there is a better way of doing “How to reuse Postman scripts and tests among different test cases” without using the eval method?

I want to do something like why described here: open to define global functions to be used across collection · Issue #959 · postmanlabs/postman-collection · GitHub and I would like to do it in a more structured way then using eval and global variables.

can someone maybe guide me in a way I could do this? or is eval really the only way to go?

Hey everyone :waving_hand:,

Sorry we didn’t get to this sooner. This isn’t the experience we want for our users.

I believe this is what you’re looking for and was added as part of the major version 11 release last year.

We have also just released support for external packages in the latest version of Postman, you can read more about this here: