text-encode
Advanced tools
+1
-1
| { | ||
| "name": "text-encode", | ||
| "version": "1.0.3", | ||
| "version": "1.0.4", | ||
| "description": "自动识别文本文件的编码及BOM处理,读取实际文件内容,并支持以相同格式保存回去", | ||
@@ -5,0 +5,0 @@ "main": "textEncode.js", |
+2
-1
@@ -20,3 +20,4 @@ var iconv = require('iconv-lite'); | ||
| fs.readFile(fileName, function (err, bytes) { | ||
| cb(err, it.readBytes(bytes)) | ||
| var tx = !err && it.readBytes(bytes) | ||
| cb(err, tx) | ||
| }); | ||
@@ -23,0 +24,0 @@ }, |
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
5003
0.64%116
0.87%