Skip to content

Get and set the current Windows terminal code page.

License

Notifications You must be signed in to change notification settings

dallascao/win-codepage

 
 

Repository files navigation

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.

About

Get and set the current Windows terminal code page.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%