win-term

1.0.1 • Public • Published

win-term

Windows terminal detection.

Currently supports: cmd, cmder, conemu, powershell, mingw, and cygwin.

Installation

npm install win-term

Quickstart

 
const term = require('win-term')
 
if (term)
    console.log(term)
 
 

API

require('win-term')

  • returns false if the platform is not Windows or stdout is not a TTY; else returns the name of the terminal, one of: 'cmd', 'cmder', 'conemu', 'powershell', 'mingw', or 'cygwin'.

License

WTFPL – Do What the F*ck You Want to Public License.

Made with ❤️ by @MarkTiedemann.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i win-term

Weekly Downloads

0

Version

1.0.1

License

WTFPL

Last publish

Collaborators

  • marktiedemann