0.1.1 • Published 10 years ago

cj2hyper v0.1.1

Weekly downloads
2
License
MIT
Repository
github
Last release
10 years ago

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