You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

text-encode

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

text-encode - npm Package Compare versions

Comparing version
1.0.3
to
1.0.4
+1
-1
package.json
{
"name": "text-encode",
"version": "1.0.3",
"version": "1.0.4",
"description": "自动识别文本文件的编码及BOM处理,读取实际文件内容,并支持以相同格式保存回去",

@@ -5,0 +5,0 @@ "main": "textEncode.js",

@@ -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 @@ },