This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

postman-extractor

1.1.0 • Public • Published

Postman Extractor (pmx)

Command line utility that extracts/compacts resources from Postman export files for easier versioning.

oclif Version Downloads/week License

Run pmx import -f myResources.postman_export.json to split a Postman export JSON file into a set of files and folders likes this:

src
│   index.json
│
└───collections
│   └───my_collection1
│   │   │   index.json
│   │   │
│   │   └───my_folder1
│   │   │   │   my_request1a.json
│   │   │   │   my_request1b.json
│   │   │
│   │   └───my_folder2
│   │       │   my_request2a.json
│   │       │   my_request2b.json
│   │
│   └───my_collection2
│       │   index.json
│       │
│       └───my_folder3
│           │   my_request3a.json
|
└───environments
│   │   my_env1.json
│   │   my_env2.json
|
└───headerpresets
    │   my_presets1.json

Then, run pmx export -o myUpdatedResources.postman_export.json to aggregate the source files and folders into a single Postman export JSON file.

⚠️ Warning: Make sure to remove all credentials from your Postmal resources when versioning them.

Usage

$ npm install -g postman-extractor
$ pmx COMMAND
running command...
$ pmx (-v|--version|version)
postman-extractor/1.1.0 darwin-x64 node-v10.16.3
$ pmx --help [COMMAND]
USAGE
  $ pmx COMMAND
...

Commands

pmx export

Assembles ressource files in a single Postman export file

USAGE
  $ pmx export

OPTIONS
  -d, --sourceDirectory=sourceDirectory  (required) [default: src] Source directory
  -o, --outputFile=outputFile            (required) Output file

See code: src/commands/export.js

pmx help [COMMAND]

display help for pmx

USAGE
  $ pmx help [COMMAND]

ARGUMENTS
  COMMAND  command to show help for

OPTIONS
  --all  see all commands in CLI

See code: @oclif/plugin-help

pmx import

Extracts the resources of a Postman export file into a directory

USAGE
  $ pmx import

OPTIONS
  -f, --postmanFile=postmanFile  (required) Postman export file *.postman_export.json
  -o, --outputDir=outputDir      (required) [default: src] Output directory

See code: src/commands/import.js

Readme

Keywords

Package Sidebar

Install

npm i postman-extractor

Weekly Downloads

0

Version

1.1.0

License

CC0-1.0

Unpacked Size

15.3 kB

Total Files

9

Last publish

Collaborators

  • pozil