Giter VIP home page Giter VIP logo

node-launcher's Introduction

HTTP Toolkit (npx runner)

This package is a tiny wrapper around HTTP Toolkit to make it easy to run with npx and npm. HTTP Toolkit is a suite of tools for building, debugging and testing applications that use HTTP.

HTTP Toolkit is normally delivered as an Electron application, but the Electron part is actually optional, you just need to run a node cli application (the server), and to then open the UI in any modern browser. This package does that for you: it starts the server-side of HTTP Toolkit, and opens up the UI in your default browser.

This should typically work just as well as the Electron version, with less overhead, and a quicker & easier install setup if you have node installed already, but this is experimental, so do check the caveats below for some warnings.

Looking to file bugs, request features or send feedback? File an issue or vote on existing ones at github.com/httptoolkit/feedback.

Getting Started

Assuming you have a recent Node.js & npm installed, you just need to run:

npx httptoolkit

Alternatively, you can run npm install httptoolkit in your project to install it there locally, and then run httptoolkit from any of your npm scripts to wrap the setup process with your own automation.

Caveats

  • The standard desktop build of HTTP Toolkit effectively runs in the latest Chrome (via Electron), and that's the main place it's tested. In theory it should work in any other modern browser too, so do file an issue if you have any problems, but be aware that that's the likely cause.

  • The started server & UI will act totally independently. If you close the CLI process, the UI will keep running (but stop intercepting any new requests). If you close the UI, the server will keep running until you close it. Close both.

  • Old server versions may not be supported with new releases of the UI. The latest working version of the UI will remain cached on your machine by a service worker, so if you've opened it once it should keep working forever, but you may see unusual or broken behaviour if using a locked version of the httptoolkit-server dependency of this package on a machine that doesn't have an similarly old version of the UI cached. If that happens, simply npm update httptoolkit.

node-launcher's People

Contributors

dependabot[bot] avatar pimterry avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.