Migration script for Postman collections and environment variables to vscode-rest-client
- Node version 18+.
- Directories required at root:
Postman/collectionsPostman/environments
- Export your collections from Postman and put the JSON files in
Postman/collectionsdirectory. - If you need environments then export
environmentsfrom Postman and put the JSON files inPostman/environmentsdirectory. - Environments in REST client are handled from
settings.jsonin.vscodedirectory. 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.jsfile. - Command to run the script :
node porter.js.