An open API service indexing awesome lists of open source software.

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.

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^ ̄
```