cable-car

0.3.0 • Public • Published

Cable Car 🚠 A simple API Inspection Tool

Cable Car is a command line tool meant to be a convenient alternative to using things like cURL, fetch, or Postman during development.

Installation

To instantly use Cable Car, run:

npx cable-car

Or to install it globally, run:

npm install -g cable-car

Usage

Basic Usage

When you run Cable Car, you need to set the base URL of your API. You won't be able to make requests without completing this step.

Cable Car uses an application/json content type header by default, so you can immediately start making requests.

History

In the main menu there is a history option. Here, you're able to review the queries you've made in the current session, as well as the data returned from them.

You can also easily re-run these queries by selecting the "Execute" option.

Arguments

You can also run Cable Car with arguments to specify the base API URL, and fetch options. For example:

cable-car 'https://api.github.com/' '{headers:{Authorization:"Bearer <token>"}}'

Contributing

This is an open source project. If you'd like new features, please feel free to suggest or add them!

Readme

Keywords

none

Package Sidebar

Install

npm i cable-car

Weekly Downloads

0

Version

0.3.0

License

MIT

Unpacked Size

12.7 kB

Total Files

13

Last publish

Collaborators

  • parabyl