1.1.17 • Published 5 years ago

http-cli-tool v1.1.17

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

Install

npm i http-cli-tool

About

This is a Node CLI tool that allows you to make HTTP GET/POST request to APIs. It expects as parameter a config file config.json which contains the necessary details to carry out the requests. Responses to GET and POST requests are saved as getResponse.zip and postResponse.zip respectively in your current directory.

Usage

To make a GET request:

httpCli export|e config.json 

To make a POST request:

httpCli import|i config.json attachment

Note: attachment is expected to be a .zip file

To see help:

httpCli --help
Usage: index [options] [command]

Options:
  -V, --version        output the version number
  -h, --help           display help for command

Commands:
  export|e <filePath>  Send a GET request
  import|i <filename>  Send a POST request
  help [command]       display help for command

Examples

The config.json file should have the following format:

{ "url": "www.example", "username": "user", "password": "pass" }

Note: Currently, this tool only supports Basic Authentication.

Run tests

npm run test

Author

šŸ˜€ Anshuman

😃 Dipankar

😊 Nawajish

Find us on Github

*@Anshuman

*@Dipankar

*@Nawajish

Show your support

Give a ā­ļø if this project helped you!


This README was generated with ā¤ļø by readme-md-generator

1.1.17

5 years ago

1.1.16

5 years ago

1.1.15

5 years ago

1.1.14

5 years ago

1.1.13

5 years ago

1.1.12

5 years ago

1.1.11

5 years ago

1.1.10

5 years ago

1.1.9

5 years ago

1.1.8

5 years ago

1.1.7

5 years ago

1.1.5

5 years ago

1.1.4

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

0.0.1

5 years ago