Skip to content

rinkeshpurohit/postman-to-rest-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Postman to REST Client

Migration script for Postman collections and environment variables to vscode-rest-client

Pre-requisites

  1. Node version 18+.
  2. Directories required at root:
  3. Postman/collections
  4. Postman/environments

Getting Started

  1. Export your collections from Postman and put the JSON files in Postman/collections directory.
  2. If you need environments then export environments from Postman and put the JSON files in Postman/environments directory.
  3. 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.
  4. 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.
  5. Command to run the script : node porter.js.