https://github.com/nakasyou/resx
Resx is powerful response module.
https://github.com/nakasyou/resx
deno javascript
Last synced: 3 months ago
JSON representation
Resx is powerful response module.
- Host: GitHub
- URL: https://github.com/nakasyou/resx
- Owner: nakasyou
- License: mit
- Created: 2023-06-12T08:11:35.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-06-13T10:08:28.000Z (about 3 years ago)
- Last Synced: 2025-06-14T21:45:19.233Z (about 1 year ago)
- Topics: deno, javascript
- Language: TypeScript
- Homepage: http://deno.land/x/resx
- Size: 24.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Resx
Resx is powerful response module.
## Example
If you want to response JSON:
```ts
import * as resx from "https://deno.land/x/resx"
const response: Response = resx.json({
status: "ok",
})
```
For vanilla:
```ts
const json = JSON.stringify({
status: "ok",
})
const response: Response = new Response(json, {
headers: {
"content-type": "application/json",
},
})
```
...
```
_人人人人人人人人人人人人人_
> Can you understand <
 ̄Y^Y^Y^Y^^Y^Y^Y^Y^Y^Y ̄
_人人人人人人人人人人人人人人人_
> おわかりいただけただろうか <
 ̄Y^Y^Y^YY^Y^Y^Y^Y^Y^Y^Y^ ̄
```