utf8-byte-length
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"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], |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
184048
1072