isbinaryfile
Detects if a file is binary in Node.js. Similar to Perl's -B.
istextorbinary
Determine if a filename and/or buffer is text or binary. Smarter detection than the other solutions.
which-fileextension
detect file extensions, check if text or binary file, or get list of text or binary file extensions
istextorbinary-ilkkah
Determine if a filename and/or buffer is text or binary. Smarter detection than the other solutions.