hal+json to hyper+json transform
$ npm install hal2hypervar hal2hyper = require('hal2hyper');
var document = {
"_links": {
"self": { "href": "/example_resource" }
}
};
hal2hyper(document) // {"href": "/example_resource"}See test cases for example output.
$ npm test