2025-04-02 06:50:39 -04:00

12 lines
321 B
JavaScript

'use strict';
const { readFileSync, writeFileSync } = require('node:fs');
const { transcode } = require('node:buffer');
const buffer =
transcode ?
transcode(readFileSync('./undici-fetch.js'), 'utf8', 'latin1')
: readFileSync('./undici-fetch.js');
writeFileSync('./undici-fetch.js', buffer.toString('latin1'));