Skip to content

Commit

Permalink
update and note
Browse files Browse the repository at this point in the history
  • Loading branch information
samthor committed Aug 30, 2022
1 parent 325e185 commit bedb951
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 863 deletions.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,15 @@

This is a fast polyfill for [`TextEncoder`][1] and [`TextDecoder`][2], which let you encode and decode JavaScript strings into UTF-8 bytes.

It is fast partially as it does not support any encodings aside UTF-8 (and note that natively, only `TextDecoder` supports alternative encodings anyway).
It is fast partially as it does not support^ any encodings aside UTF-8 (and note that natively, only `TextDecoder` supports alternative encodings anyway).
See [some benchmarks](https://github.com/samthor/fast-text-encoding/tree/master/bench).

<small>

^If this is run on Node v5.1 through v11 (when `Text...` was introduced), then this simply wraps `Buffer`, which supports many encodings and is native code.

</small>

[1]: https://developer.mozilla.org/en-US/docs/Web/API/TextEncoder
[2]: https://developer.mozilla.org/en-US/docs/Web/API/TextDecoder

Expand Down
10 changes: 0 additions & 10 deletions compile.sh

This file was deleted.

20 changes: 0 additions & 20 deletions externs.js

This file was deleted.

Loading

0 comments on commit bedb951

Please sign in to comment.