express-ipld
v0.0.1
Published
Express middleware for dag-json and dag-cbor IPLD codecs
Downloads
1,993
Readme
express-ipld
Express middleware for dag-json and dag-cbor IPLD codecs.
Usage:
import express from "express";
import ipld from "express-ipld";
const app = express();
app.use(ipld());
app.post("/", (req, res) => {
// if request has content-type application/json or application/cbor,
// req.body will be parsed using dag-json / dag-cbor
// ...
});