Comparing version 1.0.8 to 1.0.9
{ | ||
"name": "b2a", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"description": "btoa and atob (ie base64 encoding and decoding) support for node.js or old browsers, with the Unicode Problems fixed", | ||
@@ -25,3 +25,7 @@ "main": "lib/index.js", | ||
"atob", | ||
"base64" | ||
"base64", | ||
"unicode", | ||
"16-bit", | ||
"8-bit", | ||
"homoglyphs" | ||
], | ||
@@ -28,0 +32,0 @@ "engines": { |
@@ -20,2 +20,4 @@ [![Build Status](https://travis-ci.org/kaelzhang/b2a.svg?branch=master)](https://travis-ci.org/kaelzhang/b2a) | ||
The common problem of other libraries is that they fail to encode 16-bit strings. Since DOMStrings are 16-bit-encoded strings, in most browsers calling `window.btoa` on a Unicode string will cause a `'Character Out Of Range'` exception if a character exceeds the range of a 8-bit byte (`0x00~0xFF`). | ||
This module will try to reuse `window.atob` and `window.btoa` when possible. | ||
@@ -22,0 +24,0 @@ |
6491
59