Skip to content

MayfieldRoboticsPublic/meatyjs

Repository files navigation

meatyjs Build Status Coverage Status

Simple media type parsing and formatting. Based on work by:

usage

Register as a depndency, e.g.:

$ bower install meatyjs --savedev

and then:

var mediaType = meaty.parse("application/vnd.mayfield.msg.v1+json; chunksize=512");
assert(mediaType.type === "application"));
assert(mediaType.subType === "mayfield.msg.v1");
assert(mediaType.tree === "vnd");
assert(mediaType.suffix === "json");
assert(mediaType.parameters === {"chunksize": "512"});
assert(mediaType.format() === "application/vnd.mayfield.msg.v1+json; chunksize=512");

dev

$ git clone git@github.com:mayfieldrobotics/meatyjs.git
$ cd meatyjs
$ npm install
$ grunt build test

release

All is well:

$ grunt clean build test

so update {version} in:

  • package.json
  • bower.json

then:

$ git -am "release v{version}"
$ git tag -a v{version} -m "release v{version}"
$ git push --tags

and bower will index.