Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

to-utf-8

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

to-utf-8 - npm Package Compare versions

Comparing version 1.2.0 to 1.3.0

19

index.js

@@ -41,2 +41,21 @@ var detect = require('charset-detector')

function toutf8sync (buf, opts) {
if (!opts) opts = {}
opts.detectSize = buf.length
opts.newline = false
var stream = toutf8(opts)
stream.write(buf)
stream.end()
var output = []
var next = null
while (next = stream.read()) output.push(next)
return Buffer.concat(output)
}
toutf8.sync = toutf8sync
module.exports = toutf8

2

package.json
{
"name": "to-utf-8",
"version": "1.2.0",
"version": "1.3.0",
"description": "Detect input encoding and convert to utf-8 if needed",

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc