Socket
Socket
Sign inDemoInstall

utf-8-validate

Package Overview
Dependencies
Maintainers
4
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

utf-8-validate - npm Package Compare versions

Comparing version 3.0.4 to 4.0.0

4

fallback.js

@@ -19,6 +19,2 @@ /*!

const isValidUTF8 = (buf) => {
if (!Buffer.isBuffer(buf)) {
throw new TypeError('First argument needs to be a buffer');
}
var len = buf.length;

@@ -25,0 +21,0 @@ var i = 0;

4

package.json
{
"name": "utf-8-validate",
"version": "3.0.4",
"version": "4.0.0",
"description": "Check if a buffer contains valid UTF-8",

@@ -26,3 +26,3 @@ "main": "index.js",

"bindings": "~1.3.0",
"nan": "~2.7.0",
"nan": "~2.8.0",
"prebuild-install": "~2.3.0"

@@ -29,0 +29,0 @@ },

@@ -35,6 +35,2 @@ # utf-8-validate

#### Exceptions
Throws a `TypeError` exception if the first argument is not a buffer.
#### Example

@@ -41,0 +37,0 @@

Sorry, the diff of this file is not supported yet

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