cj2hyper

0.1.1 • Public • Published

cj2hyper

Collection+JSON to hyper+json transform.

Installation

$ npm install cj2hyper

Usage

var cj2hyper = require('cj2hyper');

var document = {
  "collection": {
    "version": "1.0",
    "href" : "http://example.org/friends/"
  }
};

cj2hyper(document) // {"href": "http://example.org/friends/"}

See test cases for example output.

Testing

$ npm test

Package Sidebar

Install

npm i cj2hyper

Weekly Downloads

1

Version

0.1.1

License

MIT

Last publish

Collaborators

  • camshaft