Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 456 Bytes

README.md

File metadata and controls

35 lines (25 loc) · 456 Bytes

hal2hyper

hal+json to hyper+json transform

Installation

$ npm install hal2hyper

Usage

var hal2hyper = require('hal2hyper');

var document = {
  "_links": {
    "self": { "href": "/example_resource" }
  }
};

hal2hyper(document) // {"href": "/example_resource"}

See test cases for example output.

Testing

$ npm test