Detects if a file is binary in Node.js. Similar to Perl's -B.
Determine if a filename and/or buffer is text or binary. Smarter detection than the other solutions.
Determines if a buffer is comprised of text or binary
Determine if a filename and/or buffer is text or binary. Smarter detection than the other solutions.