Detects if a file is binary in Node.js. Similar to Perl's -B