Steve Klabnik changelog.com/posts

halbert: a JavaScript implementation of HAL

Building an awesome hypermedia API, and using HAL to do it? You might want to check out halbert.

Halbert is pretty easy to install and use, just do this:

$ npm install halbert

And then, in your code:

var parser = require('halbert').parser;
var resource = parser(json_object);

And that’s it! Of course, you’ll get an error if the JSON isn’t proper HAL.


Discussion

Sign in or Join to comment or subscribe

Player art
  0:00 / 0:00