zloirock/core-js

`TextEncoder` and `TextDecoder`

Open

#926 aberto em 12 de abr. de 2021

Ver no GitHub
 (6 comments) (3 reactions) (0 assignees)JavaScript (1.609 forks)batch import
help wantedweb standards

Métricas do repositório

Stars
 (23.771 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

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

Guia do colaborador