1.2.0 • Published 9 years ago

format-data-handler v1.2.0

Weekly downloads
-
License
MIT
Repository
-
Last release
9 years ago

format-data-handler

WindowsMac/Linux
Windows Build statusBuild Status

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)
1.2.0

9 years ago

1.1.0

9 years ago