0.1.3 • Published 5 months ago
@jderjs/core v0.1.3
JDER Core
A standard response builder.
This package includes different response builders based on the JSON response structure specified in JSON Data Error Response (JDER). With the builders, various kinds of responses can be created easily instead of sending plain text responses.
Quick Start
To create a JSON response, use the following code:
import { createJsonResponse } from "@jderjs/core";
const route = (): Response => {
return createJsonResponse();
}And the response will be shown as below:
{
"success": true
}License
This project is licensed under the terms of the MIT license.