win-codepage
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Code page Travis CI Build Status

Get and set the current Windows terminal code page.

NPM Badge

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.

Package Sidebar

Install

npm i win-codepage

Weekly Downloads

4

Version

1.0.0

License

MIT

Unpacked Size

4.68 kB

Total Files

6

Last publish

Collaborators

  • richienb