Migration script for Postman collections and environment variables to vscode-rest-client
- Node version 18+.
- Directories required at root:
Postman/collections
Postman/environments
- Export your collections from Postman and put the JSON files in
Postman/collections
directory. - If you need environments then export
environments
from Postman and put the JSON files inPostman/environments
directory. - Environments in REST client are handled from
settings.json
in.vscode
directory. This file will be auto generated and if it exists then variables will be added to it. - By default the script generates collections and env variables both. You can disable either one by commenting the functions at the end of
porter.js
file. - Command to run the script :
node porter.js
.