Base64エンコード/デコードをブラウザで実装する — 日本語で崩れるbtoa/atobをTextEncoderで直す
Base64エンコード/デコードをブラウザで実装する — 日本語で崩れるbtoa/atobをTextEncoderで直す
Two ideas for maybe future additions
1. Show the gzip size next to file size
(TextEncoder + CompressionStream)
2. Allow setting browser targets
Often we/clients have a support minimum e.g. iOS 15. Based on this you could warn/note features that might not work
Two ideas for maybe future additions
1. Show the gzip size next to file size
(TextEncoder + CompressionStream)
2. Allow setting browser targets
Often we/clients have a support minimum e.g. iOS 15. Based on this you could warn/note features that might not work
github.com/suchipi/yava...
Highlights:
- ES2020 -> ES2023
- Improved top-level await support
- Added TextEncoder/TextDecoder
- Added import attribute support
- exec/Worker improvements on Windows
- Bytecode (de)serializer improvements.
- FreeBSD support added
github.com/suchipi/yava...
Highlights:
- ES2020 -> ES2023
- Improved top-level await support
- Added TextEncoder/TextDecoder
- Added import attribute support
- exec/Worker improvements on Windows
- Bytecode (de)serializer improvements.
- FreeBSD support added
Convert your text to Base64 with this easy to use encoder
#Base64Converter #TextEncoder #OnlineEncoder #EncodeYourText #Base64Decode
Convert your text to Base64 with this easy to use encoder
#Base64Converter #TextEncoder #OnlineEncoder #EncodeYourText #Base64Decode
But ATProto facet offsets are *bytes*, so encode the string to UTF-8 using (TextEncoder().encode(text)) then calc the start+end offsets from the Uint8Array.
But ATProto facet offsets are *bytes*, so encode the string to UTF-8 using (TextEncoder().encode(text)) then calc the start+end offsets from the Uint8Array.
UTF-8で入力された文字をTextEncoderでUtf8Arrayのバイト配列にして、今回はGBK(Simplified Chinese GBK)で無理やりデコードした結果で出してます。
細かい変換のところまでは把握できてないですが……
UTF-8で入力された文字をTextEncoderでUtf8Arrayのバイト配列にして、今回はGBK(Simplified Chinese GBK)で無理やりデコードした結果で出してます。
細かい変換のところまでは把握できてないですが……
https://developer.mozilla.org/en-US/docs/Web/API/TextEncoder/encoding
The TextEncoder.encoding read-only property returns a string containing the name of the encoding algorithm used by the specific encoder.
#webdev
https://developer.mozilla.org/en-US/docs/Web/API/TextEncoder/encoding
The TextEncoder.encoding read-only property returns a string containing the name of the encoding algorithm used by the specific encoder.
#webdev
https://developer.mozilla.org/en-US/docs/Web/API/TextEncoder/encoding
The TextEncoder.encoding read-only property returns a string containing the name of the encoding algorithm used by the specific encoder.
#webdev
https://developer.mozilla.org/en-US/docs/Web/API/TextEncoder/encoding
The TextEncoder.encoding read-only property returns a string containing the name of the encoding algorithm used by the specific encoder.
#webdev
- console, fs, process, path, Buffer, URL, EventEmitter, TextEncoder/TextDecoder
- Both callback and Promise APIs work setTimeout, setInterval, async/await
- Proper exception handling with stack traces
- console, fs, process, path, Buffer, URL, EventEmitter, TextEncoder/TextDecoder
- Both callback and Promise APIs work setTimeout, setInterval, async/await
- Proper exception handling with stack traces
https://github.com/mastodon/mastodon/pull/37349
https://github.com/mastodon/mastodon/pull/37349
idk how bad the code is, but it works
idk how bad the code is, but it works
Congrats to @jasnell.me on advancing Typed Array Find Within to Stage 1 at TC39 today 🎉
It aims to provide a native indexOf operations for Typed Arrays.
docs.google.com/presentation...
Congrats to @jasnell.me on advancing Typed Array Find Within to Stage 1 at TC39 today 🎉
It aims to provide a native indexOf operations for Typed Arrays.
docs.google.com/presentation...
Congrats to @jasnell.me on advancing Typed Array Concatenation to Stage 1 at TC39 today 🎉
It aims to improve the performance of this concat operation compared to userland libraries.
Congrats to @jasnell.me on advancing Typed Array Concatenation to Stage 1 at TC39 today 🎉
It aims to improve the performance of this concat operation compared to userland libraries.
"To have unified convention, a class-based system, all classes must then use a .readable and .writable property...
"To have unified convention, a class-based system, all classes must then use a .readable and .writable property...
Description: The TextEncoder API transforms a stream of code points into a byte stream with UTF-8 encoding, and TextDecoder does the reverse.
Description: The TextEncoder API transforms a stream of code points into a byte stream with UTF-8 encoding, and TextDecoder does the reverse.
github.com/vitest-dev/v...
github.com/vitest-dev/v...