An Express.js middleware to byte serve content
npm install partial-responseAn Express.js middleware to byte serve content
``bash`
npm install --save partial-response
partial-response inserts a method (sendPartial) on the response object.
It takes a file path as parameter, and will serve the file with proper Range headers.
Like so:
`javascript
const pr = require('partial-response')
app.get('/cat-pic', pr, (req, res) => {
res.sendPartial('./cat-pic1.jpg')
})
``
MIT