1.1.17 ⢠Published 5 years ago
http-cli-tool v1.1.17
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
Show your support
Give a āļø if this project helped you!
This README was generated with ā¤ļø by readme-md-generator