postman-extractor
Command line utility that extracts/compacts resources from Postman export files for easier versioning
Last updated 3 months ago by pozil .
CC0-1.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install postman-extractor 
SYNC missed versions from official npm registry.

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.0.1 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

Current Tags

  • 1.0.2                                ...           latest (3 months ago)

3 Versions

  • 1.0.2                                ...           3 months ago
  • 1.0.1                                ...           5 months ago
  • 1.0.0                                ...           5 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (5)
Dev Dependencies (7)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |