UNPKG

web-encoding

Version:

TextEncoder and TextDecoder APIs from Encoding Standard APIs in a universal package

8 lines (5 loc) 221 B
"use strict" exports.TextEncoder = typeof TextEncoder !== "undefined" ? TextEncoder : require("util").TextEncoder exports.TextDecoder = typeof TextDecoder !== "undefined" ? TextDecoder : require("util").TextDecoder