format-data-handler

1.2.0 • Public • Published

format-data-handler

Windows Mac/Linux
Windows Build status Build 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)

Readme

Keywords

Package Sidebar

Install

npm i format-data-handler

Weekly Downloads

0

Version

1.2.0

License

MIT

Last publish

Collaborators

  • finnpauls