danew - Overview
Pinned Loading
-
1
// https://developer.mozilla.org/en-US/docs/Web/API/WindowBase64/Base64_encoding_and_decoding#Solution_3_%E2%80%93_rewrite_the_DOMs_atob()_and_btoa()_using_JavaScript's_TypedArrays_and_UTF-82
const base64 = require('base64-js');
4
const urlSafe = (buffer) => {
5
const bytes = new Uint8Array(buffer);
-
Quick Boilerplate for Puppeteer and Jest
JavaScript 1
-
1
import { EventEmitter } from 'node:events';
3
const channels: Map<string, EventEmitter> = new Map();
5
class MockBroadcastChannel implements BroadcastChannel {