0.2.0 • Published 5 months ago

@jderjs/hono v0.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

JDER Hono

A response builder for Hono.

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/hono";

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.

0.2.0

5 months ago

0.1.1

6 months ago

0.1.0

6 months ago