express-ipld
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

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
  // ...
});

Readme

Keywords

none

Package Sidebar

Install

npm i express-ipld

Weekly Downloads

356

Version

0.0.1

License

MIT

Unpacked Size

3.71 kB

Total Files

5

Last publish

Collaborators

  • joelg