istextorbinary

Determine if a filename and/or buffer is text or binary. Smarter detection than the other solutions.

Browse on unpkg