Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lorenzleutgeb/node-crust
A command line REST client written in node.js
https://github.com/lorenzleutgeb/node-crust
Last synced: 26 days ago
JSON representation
A command line REST client written in node.js
- Host: GitHub
- URL: https://github.com/lorenzleutgeb/node-crust
- Owner: lorenzleutgeb
- Created: 2013-02-11T20:22:30.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2018-05-11T13:50:19.000Z (over 6 years ago)
- Last Synced: 2023-04-02T13:16:05.288Z (over 1 year ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# crust
A command line REST client written in node.js
`crust` is not a library for node to query REST services like [restler](https://github.com/danwrong/restler) or a REST framework to provide such a service, like [restify](https://github.com/mcavage/node-restify).
## Installation
With [npm](https://github.com/isaacs/npm), just do:
npm install -g crust
or clone this project:
git clone https://github.com/flowlo/node-crust.git
## Usage
The simplest invocation is just:
crust
which is equivalent to:
crust GET localhost:80/
To send a HTTP GET request:
crust localhost/foo
You can also specify a HTTP method:
crust PUT localhost/foo/42
When sending a POST request, `crust` reads the body from `process.stdin`, so you might want to do:
crust POST localhost/foo < bar.in
Basic HTTP authorization and custom TCP ports are also supported:
crust username:password@hostname:port/path/to?foo=bar