pmconverter
v1.0.2
Published
By specifying the paths of your collection and environment JSON files, you can update your Postman Collection environments
Downloads
8
Readme
This package helps you change your Postman collections' environment just by specifying the paths of the folder or your collection and environment JSON files.
You can mention:
- One collection and one environment JSON
- One collection and many environment JSON files or vice versa
- Many collections and many environment JSON files
You can also put all of them in one or separate folders and mention folder directories.
The order of the paths (collection and environment or folder) does not matter. Keep in mind: You have to name your environment subdomain as envSubdomain, base URL as a baseUrl, and if you are using API to generate a token then have to name it as tokenUrl and token as a accessToken
Usage:
To use the package, first, you need to install it by running the command:
npm i -g pmconverter
pmconvert <your-collection-path> <your-environment-path>
pmconvert <your-collection-path> <your-environment-path> <your-environment-path>
Or
pmconvert <your-collection-path> <your-collection-path> <your-environment-path>
As mentioned above, the order does not matter:
pmconvert <your-collection-path> <your-collection-path> <your-environment-path>
pmconvert <your-collection-path> <your-collection-path> <your-collection-path> <your-environment-path>
pmconvert <your-folder-path>
Or
pmconvert <your-collection-folder-path> <your-environment-folder-path>