1.1.17 ⢠Published 6 years ago
http-cli-tool v1.1.17
Install
npm i http-cli-toolAbout
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 attachmentNote: attachment is expected to be a .zip file
To see help:
httpCli --helpUsage: 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 commandExamples
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 testAuthor
š 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