mixdown-json

3.0.2 • Public • Published

mixdown-json

Plugin for json response for mixdown.js.

Usage

Mixdown Router handler

 
module.exports = function(httpContext) {
  var req = httpContext.request;
  var res = httpContext.response;
  var app = httpContext.app;
 
  app.plugins.json.send({ hip: 'hop '}, res, {}, req);
};
 

Express

var app = mixdown.apps['foo'];
 
expressApp.get('/foo/bar', function(req, res) {
  app.plugins.json.send({ hip: 'hop '}, res, {}, req);
});
 

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 3.0.2
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 3.0.2
    2
  • 3.0.1
    0
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i mixdown-json

Weekly Downloads

2

Version

3.0.2

License

MIT

Last publish

Collaborators

  • tommydudebreaux