1.2.0 • Published 11 years ago
format-data-handler v1.2.0
format-data-handler
| Windows | Mac/Linux |
|---|---|
HTTPHandler wrapper for the format-data module, that formats an object streams
with a format specified through the querystring or the accept headers.
Install with npm install format-data-handler.
Example usage
var formatDataHandler = require('format-data-handler')
var serve = formatDataHandler(function (opts) {
return database.createReadStream(opts)
})
http.createServer(serve)