# tbrex

> a tool to quickly create command line tools

Latest version **1.1.3** (published 2020-04-28) · ISC license · 0 weekly downloads

## Install

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

## 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.3 |
| Published | 2020-04-28 |
| First published | 2019-08-29 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 4.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | jsanchesleao |

## Links

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

## Dependencies (2)

- [inquirer](https://npm.io/package/inquirer.md) ^7.0.0
- [minimist](https://npm.io/package/minimist.md) ^1.2.0

## Recent versions

- 1.1.3 (latest) — 2020-04-28
- 1.1.2 — 2019-09-02
- 1.1.1 — 2019-09-02
- 1.1.0 — 2019-09-02
- 1.0.0 — 2019-08-29

## README

# TBrex - CLI Maker

This is a library intended to help creating CLI tools.

## Installation

`npm install tbrex --save`

## Example Usage

```javascript
  const {Command, Switcher} = require('tbrex');
  
  class EchoCommand extends Command {
    constructor() {
      super("echo");
    }

    async exec(args, out) {
      out.send(args);
      return this.SUCCESS;
    }

    describe() {
      return 'Echoes back any arguments passed to it';
    }
  }

  const app = new Switcher({
    options: {
      echo: new EchoCommand()
    }
  })

  app.run(process.argv.slice(2)).then(process.exit);
```

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