New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

http-response-builder

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

http-response-builder

This package provide ability to build http response from server side, it allows you to return an response according to one pattern when you work in a team.

latest
Source
npmnpm
Version
1.0.3
Version published
Maintainers
1
Created
Source

http-response-builder

This package provides ability to build http response from server side. It allows you to return response according to one pattern when you work in a team.

No dependencies.

Installation

npm install http-response-builder --save

Usage

const ResponseBuilder = require('http-response-builder');

const response = new ResponseBuilder();

response.addItem() // add in response item property
response.addItems() // add in response items property
response.success() // for change status boolean default true
response.addProperty() // add in response property with custom name and assign value for it
response.message() // add in response message
response.get() // return response data
response.getJson() // return response data in json string

Keywords

node

FAQs

Package last updated on 12 Jun 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts