Skip to content

lorenzleutgeb/node-crust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

crust

A command line REST client written in node.js

crust is not a library for node to query REST services like restler or a REST framework to provide such a service, like restify.

Installation

With 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

About

A command line REST client written in node.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors