format-data-handler
v1.2.0
Published
HTTPHandler for formatting tabular-like object streams
Downloads
2
Readme
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)