zloirock/core-js

`TextEncoder` and `TextDecoder`

Open

#926 geöffnet am 12. Apr. 2021

Auf GitHub ansehen
 (6 Kommentare) (3 Reaktionen) (0 zugewiesene Personen)JavaScript (1.609 Forks)batch import
help wantedweb standards

Repository-Metriken

Stars
 (23.771 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

There is already good browser support for these, but Node.js does not have these at all, so testing code that uses them is an issue if you're using jest w/ babel or something like that.

Having a polyfill for these that just 'works out of the box' would be great. There's a very good polyfill at the page below.

https://developer.mozilla.org/en-US/docs/Web/API/TextEncoder

Contributor Guide