api-tester-cli
v1.0.0
Published
A simple CLI tool to test APIs
Readme
API Tester CLI
📌 Description
API Tester CLI is a simple command-line tool to send API requests and view responses. It supports GET and POST requests with JSON payloads.
🚀 Features
- ✅ Send GET and POST requests
- ✅ Pretty-print JSON responses
- ✅ Display response status and time taken
📦 Installation
From NPM (Recommended)
- Install globally:
npm install -g api-tester-cli - Run the CLI:
api-tester GET https://jsonplaceholder.typicode.com/posts/1
From GitHub
- Clone the repository:
git clone https://github.com/your-username/api-tester-cli.git - Install dependencies:
cd api-tester-cli npm install - Link globally:
npm link
🎯 Usage
Send a GET request
api-tester GET https://jsonplaceholder.typicode.com/posts/1Send a POST request with JSON data
api-tester POST https://jsonplaceholder.typicode.com/posts '{"title":"Test","body":"Hello API"}'🛠 Development
If you want to modify the code:
- Clone the repo
- Make changes
- Run:
to use the modified version globally.npm link
📝 License
This project is licensed under the MIT License.
Made with ❤️ by Sudipto Satpati
