https://github.com/jderstd/express
A response builder for Express
https://github.com/jderstd/express
builder express javascript jder json response typescript
Last synced: 3 months ago
JSON representation
A response builder for Express
- Host: GitHub
- URL: https://github.com/jderstd/express
- Owner: jderstd
- License: mit
- Created: 2025-09-20T09:13:38.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2026-03-16T00:23:37.000Z (3 months ago)
- Last Synced: 2026-03-16T11:28:34.994Z (3 months ago)
- Topics: builder, express, javascript, jder, json, response, typescript
- Language: TypeScript
- Homepage: https://github.com/jderstd/express/blob/main/docs/express/README.md
- Size: 554 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# JDER Express
A response builder for Express.
This package includes different response builders based on the JSON response structure specified in [JSON Data Errors Response (JDER)](https://github.com/jderstd/spec). 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:
```ts
import type { Request, Response } from "express";
import { createJsonResponse } from "@jderstd/express";
const route = (req: Request, res: Response): Response => {
return createJsonResponse(res);
}
```
And the response will be shown as below:
```json
{
"success": true,
"data": null,
"errors": []
}
```
## Documentation
For the documentation,
please refer to the [documentation](./docs/express/README.md).
## APIs
For the package APIs,
please refer to the [APIs](./apis/express/README.md).
## Contributing
For contributing, please refer to the [contributing guide](./CONTRIBUTING.md).
## License
This project is licensed under the terms of the MIT license.