Get and set the current Windows terminal code page.
npm install win-codepage
const codePage = require("win-codepage");
(async () => {
await codePage()
//=> 850
await codePage(65001) // Set to unicode
await codePage()
//=> 65001
})()
Type: number
The page number to set.