# api-master-cli

> This package will help you to generate an express router TypeScript bundle in a single moment. It can be started only from the project directory or from any of its subdirectories. The package will create a router bundle in your API folder and will update

Latest version **1.1.5** (published 2021-10-25) · ISC license · 0 weekly downloads

## Install

```sh
npm install api-master-cli
pnpm add api-master-cli
yarn add api-master-cli
bun add api-master-cli
```

Provides the command `api-master-cli`.

## 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.1.5 |
| Published | 2021-10-25 |
| First published | 2021-10-18 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 40.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | bo_stan |

## Links

- npm: https://www.npmjs.com/package/api-master-cli
- Repository: https://github.com/StanBondar/api-master-cli
- Homepage: https://github.com/StanBondar/api-master-cli#readme
- Issues: https://github.com/StanBondar/api-master-cli/issues
- npm.io page: https://npm.io/package/api-master-cli

## Dependencies (2)

- [chalk](https://npm.io/package/chalk.md) ^4.1.2
- [pluralize](https://npm.io/package/pluralize.md) ^8.0.0

## Recent versions

- 1.1.5 (latest) — 2021-10-25
- 1.1.4 — 2021-10-25
- 1.1.3 — 2021-10-25
- 1.1.2 — 2021-10-21
- 1.1.1 — 2021-10-21
- 1.1.0 — 2021-10-21
- 1.0.2 — 2021-10-19
- 1.0.1 — 2021-10-19
- 1.0.0 — 2021-10-18

## README

This package will help you to generate an express router TypeScript bundle in a single moment.
It can be started only from the project directory or from any of its subdirectories.
The package will create a router bundle in your API folder and will update the API entry point.
If the API folder doesn't exist - it will be created automatically.

## Installing api-master-cli

With NPM:

```bash
npm i -g api-master-cli
```

## Usage
```bash
api-master-cli <route_name>
```

**OR**

```bash
npx api-master-cli <route_name>
```

Just run npx api-master-cli <route_name>, where "route_name" is your desired route name. All methods will be generated by default. Pluralize package handles all route names for better naming.

You can **use flag -s in the end** to force singular route naming.

You can choose only methods you want to generate by typing its names separated by dash(-).

I.e. npx api-master-cli <route_name> get-put. In this case only get and put methods will be generated. If you made a mistage in method name - it will be skipped. If all methods will be provided with mistakes, the default methods bundle will be created.

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