reqnjs
v1.0.4
Published
ReqNJS: Command Line Interface for making HTTP requests
Downloads
280
Maintainers
Readme
ReqNJS
ReqNJS is a simple and user-friendly command line interface (CLI) for making HTTP requests in Node.js.
Table of Contents
Installation
To install the ReqNJS package, you need to have Node.js and npm installed on your system. You can install ReqNJS globally using npm:
npm install -g reqnjs
Usage
After installing ReqNJS, you can use it to make various types of HTTP requests from the command line.
GET Request
reqnjs get <url>
Example:
reqnjs get http://example.com
Example with UUID:
reqnjs get http://example.com/resource/123e4567-e89b-12d3-a456-426614174000
POST Request
reqnjs post <url> <data>
Example:
reqnjs post http://example.com '{"key":"value"}'
Example with UUID:
reqnjs post http://example.com/resource/123e4567-e89b-12d3-a456-426614174000 '{"key":"value"}'
PUT Request
reqnjs put <url> <data>
Example:
reqnjs put http://example.com '{"key":"updatedValue"}'
Example with UUID:
reqnjs put http://example.com/resource/123e4567-e89b-12d3-a456-426614174000 '{"key":"updatedValue"}'
DELETE Request
reqnjs delete <url> <data>
Example:
reqnjs delete http://example.com '{"key":"valueToDelete"}'
Example with UUID:
reqnjs delete http://example.com/resource/123e4567-e89b-12d3-a456-426614174000 '{"key":"valueToDelete"}'
PATCH Request
reqnjs patch <url> <data>
Example:
reqnjs patch http://example.com '{"key":"partialUpdateValue"}'
Example with UUID:
reqnjs patch http://example.com/resource/123e4567-e89b-12d3-a456-426614174000 '{"key":"partialUpdateValue"}'
HEAD Request
reqnjs head <url>
Example:
reqnjs head http://example.com
Example with UUID:
reqnjs head http://example.com/resource/123e4567-e89b-12d3-a456-426614174000
CONNECT Request
reqnjs connect <url>
Example:
reqnjs connect http://example.com
License
This project is licensed under the MIT License.