istextfile
v1.0.0
Published
The function judge whether the file is text-file or not
Downloads
8
Readme
isTextFile
The function judge whether a file is text-file or not
这个函数判断一个文件是不是文本文件
var isTextFile = require('istextfile');
if(isTextFile("a.jpg")){
console.log('The file is text-file')
}else{
console.log('The file is binary-file')
}
#install npm install istextfile