I\'m wondering what would be the best way to check if a file is binary or ASCII with Node.js?
There appears to be two ways not specific to node.js:
Thanks to the comments on this question by David Schwartz, I created istextorbinary to solve this problem.