JSPM

  • Created
  • Published
  • Downloads 74364
  • Score
    100M100P100Q50186F

Middleware for lazy sending of HTTP responses.

Package Exports

  • slack

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (slack) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

###Slack - Middleware for lazy sending of HTTP responses.
Install: npm install slack


###res.send():

app.send(body, code)

code is optional, if given will set the HTTP status code. If body is an object then the output will be converted to json and the content-type header will be set to application/json. Otherwise the output won't be converted and will be sent as text/html.


###Examples: View the examples


###Tests

npm test

Build Status