guess-terminal
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Guess the current terminal emulator program

guess-terminal

Installation

npm install guess-terminal

Usage

const {guessTerminal} = require('guess-terminal');
 
switch (guessTerminal()) {
    case 'iterm2':
    case 'hyper':
        console.log('Supports images');
    case 'terminal':
    default:
        console.log('No image support');
}

License

Copyright 2017. guess-terminal is released under the MIT license.

Development

yarn
yarn test --watch

Release

yarn test
yarn build
yarn publish

Package Sidebar

Install

npm i guess-terminal

Weekly Downloads

317

Version

1.0.0

License

MIT

Last publish

Collaborators

  • marionebl