Socket
Socket
Sign inDemoInstall

utf8-byte-length

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

utf8-byte-length - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

2

package.json
{
"name": "utf8-byte-length",
"version": "1.0.1",
"version": "1.0.2",
"description": "Get byte length of utf8 string",

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

# utf8-byte-length [![build status](https://secure.travis-ci.org/parshap/utf8-byte-length.svg?branch=master)](http://travis-ci.org/parshap/utf8-byte-length)
Get the byte length of a utf8 string, taking into account multi-byte and
surrogate characters.
Get the byte length of a utf8 string, taking into account multi-byte
characters and surrogate pairs.

@@ -6,0 +6,0 @@ By default, this module defers to `Buffer.byteLength`. A browser

@@ -37,2 +37,3 @@ "use strict";

["a", 1],
["☃", 3],
["a☃", 4],

@@ -39,0 +40,0 @@ [repeat("a", 250) + '\uD800\uDC00', 254],

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