win-codepage
v1.0.0
Published
My awesome module.
Downloads
17
Maintainers
Readme
Code page
Get and set the current Windows terminal code page.
Install
npm install win-codepage
Usage
const codePage = require("win-codepage");
(async () => {
await codePage()
//=> 850
await codePage(65001) // Set to unicode
await codePage()
//=> 65001
})()
API
codePage(page)
page
Type: number
The page number to set.