is-binary
Detects if a file is binary based on its content.
Usage
Example:
var assert = ;var fs = ;var isBinary = ; assert;
Tests
npm test
Inspiration
Main source code extracted from https://github.com/bevry/istextorbinary/, MIT licensed.
Tests inspired by https://github.com/gjtorikian/isBinaryFile, MIT licensed.