npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

bash-client

v1.0.8

Published

A Postman-style tool for the CLI.

Downloads

102

Readme

bash-client

Open-source "Postman"-like tool for the CLI. It's great when developing backend APIs and you want to test Http-Get or -Post requests etc.

Installation

Linux/Mac:

bash# npm install -g bash-client

Windows:

C:\> npm install -g bash-client

Usage

Npx:

npx bash-client get http://mydomain.com/file1

Linux/Mac:

bash$ Get http://mydomain.com/file1

bash$ Post /auth/login

bash$ Get /auth/status

Windows:

C:\> bashcli.cmd get http://mydomain.com/file1

C:\> bashcli.cmd put /file2

Please notice the capital G in 'Get' for Mac/Linux, but a lowercase g when using the bashcli command directly.

Features

  • Support for Http and Https. Methods: Get, Post, Put, Patch, Head, Delete.

  • Bash-client remembers. So the first time, you need to type the whole url but then you only need to specify the endpoints.

bash$ Get http://mydomain.com/file1

bash$ Get /file2

bash$ Post /auth/login

  • It has header and cookie support (written from scratch in Typescript)

  • It saves all cookies matching your filter (by default only session cookies) and the client will send all matching cookies to the webserver.

  • You can also send custom headers (eg. JWTs) and save the server response headers that match your filter (default setting is not to save any headers).

  • When you send request bodies (Http Post, Patch, Put) it will launch the integrated text editor Termit, which lets you craft the Json data.

  • You may also send any non-Json data the same way. The client remembers (and defaults to) the last data you sent.

  • Response data is nicely formatted and it will not flood your terminal.

Documentation

Real docs will be coming shortly (it's under development), but you can run the command:

bashcli help

Or "bashcli.cmd help" on Windows. You may e-mail me directly if you need help ([email protected]) but it might take a couple of days for me to respond.

Why do this kinda backend testing through the CLI?

As soon as you get used to it, it goes much faster than Postman, Thunderclient and the others because you don't need to switch between the keyboard and the mouse.

Bugs

I wrote this whole project in 13 days so there will possibly be bugs. If you find any, please let me know.

  • JB