0.11.2 • Published 4 months ago

resen v0.11.2

Weekly downloads
-
License
ISC
Repository
github
Last release
4 months ago

Resen

The Resen a command-line HTTP client.

Simple command-line HTTP client.

GitHub:

Why

The HTTPie command is a very good program, but it cannot be installed with the npm package manager. What we have is not a command line program.

Install

npm i -g resen

After installation, we get a res command. Check:

res --version

Using

Methods that can be used:

  • get
  • post
  • put
  • patch
  • delete

Syntax

res [method] <url> [params...]

Examples

GET method:

res http://localhost:8000/employees
res localhost:8000/employees
res get localhost:8000/employees

POST method:

res post localhost:8000/employees name='Steven' city='Szeged'

PUT method:

res put localhost:8000/employees/1 name='Steven' city='Szeged'

PATCH method:

res patch localhost:8000/employees/1 name='Steven' city='Szeged'

DELETE method:

res delete localhost:8000/employees/1

Authentication

Options:

  • --auth-type bearer
  • --auth token

Currently, only the Bearer token is supported.

Using example:

res delete localhost:8000/employees 
--auth-type bearer --auth f3a434...

Short form:

res delete localhost:8000/employees 
-A bearer -a f3a434...
0.11.0

4 months ago

0.11.1

4 months ago

0.11.2

4 months ago

0.10.2

1 year ago

0.9.2

1 year ago

0.9.1

1 year ago

0.9.0

1 year ago