DEV Community

pranay rauthu
pranay rauthu

Posted on

boom - command line http tool

I have published my first npm package. 💃💃💃

boom is a cli tool built for working with collection of http requests.

GitHub logo pranayrauthu / boom

command line http client

boom

boom is a command line http tool.

NPM

installation

boom can be installed globally by

npm i @prauthu/boom -g

usage

create a file with name file.http with following content

GET https://jsonplaceholder.typicode.com/posts/1
Enter fullscreen mode Exit fullscreen mode

boom x file.http will execute the request in file.http

boom c file.http will convert the request in file.http to curl command.

usage with environments

create a file with name .boom.json with environments in following format.

{
    "activeEnvironment": "default",
    "enviroments": {
        "default": {
            "host": "https://jsonplaceholder.typicode.com"
        }
    }
}

and file.http with following content

GET {{host}}/posts/1



Top comments (1)