Skip to content

dinakars777/api-ping

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

api-ping ⚡️

A lightning-fast, beautiful CLI tool to hit API endpoints and format responses.

Stop reading massive, uncolored, deeply nested JSON blocks from curl. api-ping instantly hits your target API and prints out a beautifully syntax-highlighted, indented response body, along with accurate response timings and color-coded status badges.

Features

  • 🚀 Instant: Uses native Node.js fetching for zero-overhead networking.
  • 🎨 Beautiful Output: Recursively formats and syntax-highlights JSON using picocolors.
  • ⏱️ Network Timing: Measures high-resolution request duration (e.g. 24ms).
  • 🚥 Status Badges: Clean, color-coded HTTP status badges (Green 200, Red 404, etc.).

Usage

Simply run it anywhere via npx:

npx @dinakars777/api-ping https://jsonplaceholder.typicode.com/todos/1

Options

  • Make a POST request with a body:
npx @dinakars777/api-ping https://api.example.com/data -X POST -d '{"name":"api-ping"}'
  • Pass custom Headers:
npx @dinakars777/api-ping https://api.example.com/protected -H "Authorization: Bearer my-token"

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors