mikeal/filed
►https://github.com/mikeal/filed
Those familiar with request will be familiar seeing object capability detection when doing HTTP. filed does this as well.
http.createServer(function (req, resp) {
filed(’/data.json’).pipe(resp)
})
Not only does the JSON file get streamed to the HTTP Response it will include an Etag, Last-Modified, Content-Length, and a Content-Type header based on the filed extension.