std/encoding
Doctor 0f7a71f96b
feat(encoding/unstable): adds streaming versions for hex, base32, base32hex, base64 and base64url (#4915)
* feat(encoding): adds streaming versions of several encoding methods.

Adds streaming methods for:
- Hex
- Base32
- Base64
- Base64Url

* move(encoding): streaming versions to their own modules.

* fix(encoding): jsdoc examples

* fix(encoding): error when chunk's are smaller than the minimum size.

* add(encoding): Base32Hex Encoder/Decoder Streams

* fix(encoding): mod.ts not exporting ./base32hex_stream.ts

* hex stream

* RandomSliceStream

* polish

* base32

* base64hex

* base64

* base64url

* tweak

* fix

---------

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-08-22 15:02:36 +10:00
..
_base32_common.ts feat(encoding/unstable): decodeBase32Hex() and encodeBase32Hex() (#4931) 2024-08-09 11:57:21 +02:00
_random_slice_stream.ts feat(encoding/unstable): adds streaming versions for hex, base32, base32hex, base64 and base64url (#4915) 2024-08-22 15:02:36 +10:00
_validate_binary_like_test.ts refactor(encoding): rename _util.ts (#4860) 2024-05-28 13:12:24 +10:00
_validate_binary_like.ts refactor(encoding): rename _util.ts (#4860) 2024-05-28 13:12:24 +10:00
ascii85_test.ts BREAKING(encoding): replace Ascii85Options with EncodeAscii85Options and DecodeAscii85Options (#4861) 2024-05-30 19:43:30 +10:00
ascii85.ts refactor(assert,async,bytes,cli,collections,crypto,csv,data-structures,datetime,dotenv,encoding,expect,fmt,front-matter,fs,html,http,ini,internal,io,json,jsonc,log,media-types,msgpack,net,path,semver,streams,testing,text,toml,ulid,url,uuid,webgpu,yaml): import from @std/assert (#5199) 2024-06-30 08:30:10 +00:00
base32_stream_test.ts feat(encoding/unstable): adds streaming versions for hex, base32, base32hex, base64 and base64url (#4915) 2024-08-22 15:02:36 +10:00
base32_stream.ts feat(encoding/unstable): adds streaming versions for hex, base32, base32hex, base64 and base64url (#4915) 2024-08-22 15:02:36 +10:00
base32_test.ts test(encoding): cleanup base32 tests (#5665) 2024-08-11 03:41:08 +09:00
base32.ts feat(encoding/unstable): decodeBase32Hex() and encodeBase32Hex() (#4931) 2024-08-09 11:57:21 +02:00
base32hex_stream_test.ts feat(encoding/unstable): adds streaming versions for hex, base32, base32hex, base64 and base64url (#4915) 2024-08-22 15:02:36 +10:00
base32hex_stream.ts feat(encoding/unstable): adds streaming versions for hex, base32, base32hex, base64 and base64url (#4915) 2024-08-22 15:02:36 +10:00
base32hex_test.ts feat(encoding/unstable): decodeBase32Hex() and encodeBase32Hex() (#4931) 2024-08-09 11:57:21 +02:00
base32hex.ts feat(encoding/unstable): decodeBase32Hex() and encodeBase32Hex() (#4931) 2024-08-09 11:57:21 +02:00
base58_test.ts fix(encoding): throw TypeError on invalid input (#4901) 2024-05-30 17:17:42 +10:00
base58.ts refactor(assert,async,bytes,cli,collections,crypto,csv,data-structures,datetime,dotenv,encoding,expect,fmt,front-matter,fs,html,http,ini,internal,io,json,jsonc,log,media-types,msgpack,net,path,semver,streams,testing,text,toml,ulid,url,uuid,webgpu,yaml): import from @std/assert (#5199) 2024-06-30 08:30:10 +00:00
base64_stream_test.ts feat(encoding/unstable): adds streaming versions for hex, base32, base32hex, base64 and base64url (#4915) 2024-08-22 15:02:36 +10:00
base64_stream.ts feat(encoding/unstable): adds streaming versions for hex, base32, base32hex, base64 and base64url (#4915) 2024-08-22 15:02:36 +10:00
base64_test.ts chore: switch to JSR-oriented codebase (#4650) 2024-04-29 11:57:30 +09:00
base64.ts refactor(assert,async,bytes,cli,collections,crypto,csv,data-structures,datetime,dotenv,encoding,expect,fmt,front-matter,fs,html,http,ini,internal,io,json,jsonc,log,media-types,msgpack,net,path,semver,streams,testing,text,toml,ulid,url,uuid,webgpu,yaml): import from @std/assert (#5199) 2024-06-30 08:30:10 +00:00
base64url_stream_test.ts feat(encoding/unstable): adds streaming versions for hex, base32, base32hex, base64 and base64url (#4915) 2024-08-22 15:02:36 +10:00
base64url_stream.ts feat(encoding/unstable): adds streaming versions for hex, base32, base32hex, base64 and base64url (#4915) 2024-08-22 15:02:36 +10:00
base64url_test.ts chore: switch to JSR-oriented codebase (#4650) 2024-04-29 11:57:30 +09:00
base64url.ts refactor(assert,async,bytes,cli,collections,crypto,csv,data-structures,datetime,dotenv,encoding,expect,fmt,front-matter,fs,html,http,ini,internal,io,json,jsonc,log,media-types,msgpack,net,path,semver,streams,testing,text,toml,ulid,url,uuid,webgpu,yaml): import from @std/assert (#5199) 2024-06-30 08:30:10 +00:00
deno.json feat(encoding/unstable): adds streaming versions for hex, base32, base32hex, base64 and base64url (#4915) 2024-08-22 15:02:36 +10:00
hex_stream_test.ts feat(encoding/unstable): adds streaming versions for hex, base32, base32hex, base64 and base64url (#4915) 2024-08-22 15:02:36 +10:00
hex_stream.ts feat(encoding/unstable): adds streaming versions for hex, base32, base32hex, base64 and base64url (#4915) 2024-08-22 15:02:36 +10:00
hex_test.ts chore: switch to JSR-oriented codebase (#4650) 2024-04-29 11:57:30 +09:00
hex.ts perf(encoding): fix loop times in encodeHex() (#5344) 2024-07-08 10:36:00 +09:00
mod.ts feat(encoding/unstable): adds streaming versions for hex, base32, base32hex, base64 and base64url (#4915) 2024-08-22 15:02:36 +10:00
varint_test.ts BREAKING(encoding): rename MaxVarInt to MaxVarint (#4896) 2024-05-30 18:16:48 +09:00
varint.ts refactor(assert,async,bytes,cli,collections,crypto,csv,data-structures,datetime,dotenv,encoding,expect,fmt,front-matter,fs,html,http,ini,internal,io,json,jsonc,log,media-types,msgpack,net,path,semver,streams,testing,text,toml,ulid,url,uuid,webgpu,yaml): import from @std/assert (#5199) 2024-06-30 08:30:10 +00:00