1.0.0 • Published 4 years ago

win-codepage v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

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.