1.0.0 • Published 4 years ago
win-codepage v1.0.0
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.
1.0.0
4 years ago