# fesh

> fetch interface for the terminal

Latest version **1.0.0** (published 2021-01-20) · ISC license · 0 weekly downloads

## Install

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

Provides the command `fesh`.

## 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.0 |
| Published | 2021-01-20 |
| First published | 2021-01-20 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 7.1 KB |
| Known vulnerabilities | 0 (+23 in 1 direct dependencies) |
| Install scripts | no |
| Author | J. Armando Garcia-Jacquier |
| Maintainers | armandogj |

## Links

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

## Dependencies (3)

- [axios](https://npm.io/package/axios.md) ^0.21.1
- [chalk](https://npm.io/package/chalk.md) ^4.1.0
- [yargs](https://npm.io/package/yargs.md) ^16.2.0

## Recent versions

- 1.0.0 (latest) — 2021-01-20

## README

# fetch interface for the Terminal

CLI interface to make HTTP requests using axios

`fesh <Command> [options] url`

```bash
fesh P \
  -b '{"firstName":"Armando", "lastName":"Garcia-Jacquier"}' \
  -h '{"X-Custom-Header": "foobar"}' \
  http://localhost:8000/users/
```

If multiple query params present in URL wrap in quotes
Alternitevely they can be passed as an object wrapped in quotes

```bash
fesh G 'http://localhost:8000/users?page=1&count=10'
```

### Request Methods

- GET alias G
  - Accepts Headers `--headers` or `-h` as a JSON object wrapped in quotes
  - Accepts Query Params `--query` or `-q` as a JSON object wrapped in quotes
  - Accepts Verbose mode `--verbose` or `-v`
- POST alias P
  - Accepts Headers `--headers` or `-h` as a JSON object wrapped in quotes
  - Accepts Query Params `--query` or `-q` as a JSON object wrapped in quotes
  - Accepts Body `--body` or `-b` as a JSON object wrapped in quotes
  - Accepts Verbose mode `--verbose` or `-v`
- PUT alias U
  - Accepts Headers `--headers` or `-h` as a JSON object wrapped in quotes
  - Accepts Query Params `--query` or `-q` as a JSON object wrapped in quotes
  - Accepts Body `--body` or `-b` as a JSON object wrapped in quotes
  - Accepts Verbose mode `--verbose` or `-v`

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