mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-23 06:10:02 +08:00
- Configure attached Windows consoles for UTF-8 while preserving redirected bytes and restoring host state. - Add cross-platform output coverage and a native pseudo-console regression. Fixes #321 Co-authored-by: euxaristia <25621994+euxaristia@users.noreply.github.com>
7 lines
215 B
TypeScript
7 lines
215 B
TypeScript
const text = "─ · › αβγ 你好 🎉";
|
||
|
||
console.log("console.log", text);
|
||
console.error("console.error", text);
|
||
process.stdout.write(`stdout.write ${text}\n`);
|
||
process.stderr.write(`stderr.write ${text}\n`);
|