simple-http-bin
v0.3.0
Published
A tiny local httpbin-like utility
Readme
simple-http-bin
A tiny local httpbin-like utility.
Requests are logged to the console.
Use -v or --verbose for more detail. Repeat -v for extra detail.
Colored output is enabled when the terminal supports it.
Install
npm install -g simple-http-binRun
simple-http-binOr:
npx simple-http-binOptions
simple-http-bin --port 8080
simple-http-bin -p 8080
simple-http-bin -v
simple-http-bin -vv
PORT=8080 simple-http-bin
HOST=0.0.0.0 simple-http-binEndpoints
GET /show help textGET /headersecho request headers as JSONANY /anythingecho method, path, query, headers, and bodyANY /status/:codereturn the given HTTP status code
Example
curl http://127.0.0.1:51234/headers
curl -X POST http://127.0.0.1:51234/anything -d "hello"
curl -i http://127.0.0.1:51234/status/418Release
make release-patch
make release-minor
make release-major
make publish