@cnwhy/base64
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -237,3 +237,9 @@ const BASE64_TABLE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'.split(''); | ||
const decodeURL = getDecode(BASE64_URL_TABLE, PAD); | ||
const lib = { | ||
getEncode, | ||
getDecode | ||
} | ||
// const __esModule = true; | ||
export { decode, encode, encodeURL, decodeURL, utf8Encode, utf8Decode}; | ||
export {lib, decode, encode, encodeURL, decodeURL, utf8Encode, utf8Decode}; |
@@ -15,2 +15,4 @@ /** | ||
declare function utf8Decode(buffer: ArrayBuffer | Uint8Array | number[]): string; | ||
declare function getEncode(table: string[], pad: string): (u8arr: string | number[] | ArrayBuffer | Uint8Array) => string; | ||
declare function getDecode(table: string[], pad: string): (base64Str: string) => number[] | Uint8Array; | ||
declare const encode: (u8arr: string | number[] | ArrayBuffer | Uint8Array) => string; | ||
@@ -20,2 +22,6 @@ declare const decode: (base64Str: string) => number[] | Uint8Array; | ||
declare const decodeURL: (base64Str: string) => number[] | Uint8Array; | ||
export { decode, encode, encodeURL, decodeURL, utf8Encode, utf8Decode }; | ||
declare const lib: { | ||
getEncode: typeof getEncode; | ||
getDecode: typeof getDecode; | ||
}; | ||
export { lib, decode, encode, encodeURL, decodeURL, utf8Encode, utf8Decode }; |
/*! | ||
* @cnwhy/base64 v0.1.2 | ||
* @cnwhy/base64 v0.1.3 | ||
* Homepage https://github.com/cnwhy/Base64.js#readme | ||
@@ -214,3 +214,7 @@ * License MIT | ||
const decodeURL = getDecode(BASE64_URL_TABLE, PAD); | ||
const lib = { | ||
getEncode, | ||
getDecode | ||
}; | ||
export { decode, decodeURL, encode, encodeURL, utf8Decode, utf8Encode }; | ||
export { decode, decodeURL, encode, encodeURL, lib, utf8Decode, utf8Encode }; |
@@ -8,3 +8,3 @@ (function (global, factory) { | ||
/*! | ||
* @cnwhy/base64 v0.1.2 | ||
* @cnwhy/base64 v0.1.3 | ||
* Homepage https://github.com/cnwhy/Base64.js#readme | ||
@@ -253,2 +253,6 @@ * License MIT | ||
var decodeURL = getDecode(BASE64_URL_TABLE, PAD); | ||
var lib = { | ||
getEncode: getEncode, | ||
getDecode: getDecode | ||
}; | ||
@@ -259,2 +263,3 @@ exports.decode = decode; | ||
exports.encodeURL = encodeURL; | ||
exports.lib = lib; | ||
exports.utf8Decode = utf8Decode; | ||
@@ -261,0 +266,0 @@ exports.utf8Encode = utf8Encode; |
{ | ||
"name": "@cnwhy/base64", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "Base64 library, lossless transcoding.", | ||
@@ -5,0 +5,0 @@ "main": "dist/Base64.umd.js", |
**为什么重复造轮子?** | ||
1. `btoa` , `atob` 只支持 `Latin1` 字符. | ||
2. 常用的的 Base64 编码库处理字符串时会**主动**修改错误(空)编码字符, 导致解码的数据与原数据不一至. | ||
比如用 nodejs 中的 `Buffer`: | ||
```js | ||
var s = '\ud800' | ||
var s = '\ud800'; | ||
var b64 = Buffer.from(s).toString('base64'); | ||
var _s = Buffer.from(b64,'base64').toString(); | ||
console.log(s === _s); //false | ||
var _s = Buffer.from(b64, 'base64').toString(); | ||
e; | ||
``` | ||
3. `Base64`编/解码本该与字符串无关, 但几乎所有 Base64 的`decode`方法都输出字符串,限制了使用场景. | ||
### 本库方案 | ||
对于字符串的转换用`UTF-8`编码, 但无视无效符(解码按同一规则), 保证js的字符([UCS-2](https://zh.wikipedia.org/wiki/UTF-16#UTF-16%E8%88%87UCS-2%E7%9A%84%E9%97%9C%E4%BF%82))串可以无损转换. | ||
对于字符串的转换用`UTF-8`编码, 但无视无效符(解码按同一规则), 保证 js 的字符([UCS-2](https://zh.wikipedia.org/wiki/UTF-16#UTF-16%E8%88%87UCS-2%E7%9A%84%E9%97%9C%E4%BF%82))串可以无损转换. | ||
`decode()` 单纯将`Base64`解析`Byte[]`; 但重写返回字节数组的`toString()`方法, 以`UTF-8`编码解析为字符串. | ||
### 适用场景 | ||
1. 二进制数据与Base64互转 | ||
2. 字符串与Base64互转 | ||
1. 二进制数据与 Base64 互转 | ||
2. 字符串与 Base64 互转 | ||
### Demo | ||
```js | ||
import Base64 from 'base64.js'; | ||
// import * as Base64 from 'base64.js' | ||
const Base64 = require('base64.js'); | ||
### 兼容性 | ||
通用, 不支持`ArrayBuffer`的环境将会用`Array`代替`Uint8Array`. | ||
let str = 'Base64库\u{10400}\u{d800}'; | ||
let str = 'Base64库\u{10400}\u{d800}'; | ||
console.log(str); // Base64库𐐀� | ||
@@ -40,3 +45,3 @@ | ||
let bf_str = Buffer.from(bf_b64,'base64').toString(); | ||
console.log(bf_b64); | ||
console.log(bf_b64); | ||
console.log(str === bf_str); // false | ||
@@ -55,3 +60,8 @@ | ||
### 兼容性 | ||
通用, 不支持`ArrayBuffer`的环境将会用`Array`代替`Uint8Array`. | ||
### API | ||
```ts | ||
@@ -61,11 +71,16 @@ Base64 = { | ||
decode(input:string|ArrayBuffer|Uint8Array|number[]):Uint8Array; | ||
//适用于URL的Base64 ( "_" "-" 替换 "/" "+"); | ||
encodeURL(input:string|ArrayBuffer|Uint8Array|number[]):string; | ||
decodeURL(input:string|ArrayBuffer|Uint8Array|number[]):Uint8Array; | ||
// UTF8 编码 解码 | ||
utf8Encode(str:string):Uint8Array; | ||
utf8Decode(utf8arr:Uint8Array):string; | ||
lib:{ | ||
getEncode(table: string[], pad: string): encode; | ||
getDecode(table: string[], pad: string): decode; | ||
} | ||
} | ||
``` | ||
``` |
@@ -19,2 +19,9 @@ // import Base64 from './Base64'; | ||
console.log(bf_str1); | ||
console.log(str === bf_str); // false | ||
console.log(str === bf_str); // false | ||
var myBase64 = { | ||
encode: Base64.lib.getEncode('ZYX10+/PONM765LKJIAzyTSRQGxwvuHWVFEDUCBtsrqdcba9843ponmlkjihgfe2'.split(''),'='), | ||
decode: Base64.lib.getDecode('ZYX10+/PONM765LKJIAzyTSRQGxwvuHWVFEDUCBtsrqdcba9843ponmlkjihgfe2'.split(''),'='), | ||
} | ||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nnuBU96DUj5z6o7mCU7m+mGSjtGRNpNzO8ISjUGm+bGAy360FUNzO8z/flNzO8JtUC6DYGwlNdH16861VawmcavlNoOE8ExmCaGXOiOB5FvPIrwmjpOE8Ew/+EGS8ELENNwBI9wBTpxS0b5XNf7PcEGBCcGAOiOBFouPYpLEg9vlTE7B+duSNCQB+p7B59wAfbuRGr7pOjLzyp5XfrGXfFuBTaGmT3v3y360TaG/uFwSyC6DZ3610jNzO8A/IoQ3y36+5nQtIru/4CNzO8ASjUwmjCvmCF7Bfd7t53uXOcOBbrwBJELENDQRYoxSfav3OcOB4FQBTcODsEASjUwmjCvmCF7zyEWTnu').toString(); | ||
console.log(json); |
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
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
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
50883
1010
84
1