# postex

> NPM Library to convert Postman exported JSON file to Express Based Rest API code.

Latest version **1.0.18** (published 2023-07-18) · ISC license · 0 weekly downloads

## Install

```sh
npm install postex
pnpm add postex
yarn add postex
bun add postex
```

Provides the command `px`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.18 |
| Published | 2023-07-18 |
| First published | 2023-01-26 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 41.9 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | Sourabh Bajaj |
| Maintainers | sourabhbajaj |

## Links

- npm: https://www.npmjs.com/package/postex
- npm.io page: https://npm.io/package/postex

## Dependencies (4)

- [fs](https://npm.io/package/fs.md) ^0.0.1-security
- [path](https://npm.io/package/path.md) ^0.12.7
- [express](https://npm.io/package/express.md) ^4.18.2
- [prompts](https://npm.io/package/prompts.md) ^2.4.2

## Recent versions

- 1.0.18 (latest) — 2023-07-18
- 1.0.17 — 2023-07-18
- 1.0.16 — 2023-02-01
- 1.0.15 — 2023-01-31
- 1.0.14 — 2023-01-31
- 1.0.13 — 2023-01-31
- 1.0.12 — 2023-01-31
- 1.0.11 — 2023-01-31
- 1.0.9 — 2023-01-28
- 1.0.8 — 2023-01-26
- 1.0.7 — 2023-01-26
- 1.0.6 — 2023-01-26
- 1.0.5 — 2023-01-26
- 1.0.4 — 2023-01-26

## README

# 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 &nbsp;&nbsp;&nbsp;&nbsp;Get help for options of command line

-f (Optional) &nbsp;&nbsp;&nbsp;&nbsp;Force overwrite any existing rest APIs

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

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

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

---
_Source: https://npm.io/package/postex · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
