1.0.1 • Published 9 years ago
win-term v1.0.1
win-term
Windows terminal detection.
Currently supports: cmd, cmder, conemu, powershell, mingw, and cygwin.
Installation
npm install win-termQuickstart
const term = require('win-term')
if (term)
console.log(term)API
require('win-term')
- returns
falseif the platform is not Windows orstdoutis 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 :heart: by @MarkTiedemann.