0.1.0 • Published 10 years ago

rel-message v0.1.0

Weekly downloads
6
License
ISC
Repository
github
Last release
10 years ago

rel-message

validation for rel messages

usage

var relMessage = require('rel-message')

var message = relMessage(
  'http://to.com',
  'http://from.com',
  'http://rel.com')

relMessage.validate(message)
// => true

api

relMessage : (to: URI, from: URI, rel: URI) => Object

returns a rel message object with the proper jsonld context set

relMessage.validate : (message: Object) => Boolean

installation

$ npm install rel-message

running the tests

From package root:

$ npm install
$ npm test

contributors

license

ISC. (c) MMXIV jden jason@denizac.org. See LICENSE.md