npm.io
1.0.18 • Published 3 years agoCLI

postex

Licence
ISC
Version
1.0.18
Deps
4
Size
42 kB
Vulns
1
Weekly
0

Running the command line tool to generate Express rest APIs from Postman Exported JSON

./node_modules/.bin/px "path/to/postman/json/file.json"

Available options

./node_modules/.bin/px [options] [source JSON file]

-h --help     Get help for options of command line

-f (Optional)     Force overwrite any existing rest APIs

-ts     Use typescript to write APIs, Plain javascript will be used by default

-t     Target directory where rest API files will be written. Default is ./src/Rest/ directory

-d     (Optional) Postman folders to generate APIs from. By default, all rest APIs in the specification will be generated.