{
  "name": "rest-api-response-npm",
  "version": "0.1.4",
  "description": "The package is a collection of response handler functions that can be used in a Node.js web application. These functions provide a consistent way to format HTTP responses and simplify the process of handling common response scenarios. The successResponse function formats a success response with a status code of 200 by default. It takes in the HTTP response object res, data, which is the response data to be sent, an optional message and an optional statusCode parameter. The errorResponse function formats an error response with a status code of 400 by default. It takes in the HTTP response object res, data, which is the error data to be sent, an optional message and an optional statusCode parameter. It takes in the HTTP response object res, data, which is the validation error data to be sent, an optional message and an optional statusCode parameter. The customResponse function formats a custom error response with a status code of 400 by default. It takes in the HTTP response object res, data, which is the custom error data to be sent, an optional message and an optional statusCode parameter. Overall, this package makes it easy to standardize responses in a Node.js web application and provides a clean way to handle errors and other common response scenarios.",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "keywords": [
    "REST",
    "API",
    "response",
    "Success",
    "Error",
    "Validation",
    "Status-Code",
    "Error-Handling",
    "JSON",
    "Cache",
    "CacheError",
    "npm",
    "node",
    "node js",
    "jkg",
    "jaykumar-gohil"
  ],
  "author": "Gohil Jaykumar <jkgsk21@gmail.com>",
  "license": "MIT",
  "dependencies": {
    "express-validator": "^7.0.1"
  }
}
