dres

Response Class for nodeJS applications

Usage no npm install needed!

<script type="module">
  import dres from 'https://cdn.skypack.dev/dres';
</script>

README

dres

Description

Dres is a JavaScript class that help you maintain consistency across your applications in regards to the response sent.

Usage

In order to use this class, you'll have to fetch it from npm, require it in your application and create a new instance of the class.

npm install --save dres
const DRES = require('dres');

...

this.body = new DRES('success', { userDetails: {...} });