1.0.4 • Published 7 months ago

reqnjs v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

ReqNJS

ReqNJS is a simple and user-friendly command line interface (CLI) for making HTTP requests in Node.js.

Table of Contents

Installation

install size

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.

1.0.4

7 months ago

1.0.3

7 months ago

1.0.2

7 months ago

1.0.1

7 months ago

1.0.0

7 months ago