is-eot
Check if a Buffer/Uint8Array is a EOT
Install
$ npm install --save is-eot
Usage
Node.js
var readChunk = ; // npm install read-chunkvar isEot = ;var buffer = readChunk; ;//=> true
Browser
var xhr = ;xhr;xhrresponseType = 'arraybuffer'; xhr { ; //=> true}; xhr;
API
isEot(buffer)
Accepts a Buffer (Node.js) or Uint8Array.
Test
$ npm test
test file from Font-Awesome
License
MIT © junmer