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 = ; const response = ; response // add in response item propertyresponse // add in response items propertyresponse // for change status boolean default trueresponse // add in response property with custom name and assign value for itresponse // add in response messageresponse // return response dataresponse // return response data in json string