Read exactly n bytes of an fd or file
npm install fs-read-exactlyRead exactly n bytes of an fd or file
    
``js
const readExactly = require('fs-read-exactly')
readExactly('readme.md', 0, 15, function (err, chunk) {
console.log(err) // null
console.log(chunk.toString()) // '# fs-read-exact'
})
readExactly('readme.md', 0, 1e4, function (err, chunk) {
console.log(err.code) // 'EOF'
})
`
Where mixed is either a filename or a file descriptor.
With npm do:
```
npm install fs-read-exactly
MIT © Vincent Weevers