express-hal
An implementation of HAL for Express.js.
- Exposes a
res.hal
method for automatically assembling a JSON-HAL response body. - Adds a req/res.resource object for building your resource prior to res.hal
Installation
npm install express-hal
Usage
// app.jsvar hal = ; // before the router middlewareapp; // routesapp;