guess-terminal
Version:
Guess the current terminal emulator
43 lines (31 loc) • 556 B
Markdown
> Guess the current terminal emulator program
const {guessTerminal} = require('guess-terminal');
switch (guessTerminal()) {
case 'iterm2':
case 'hyper':
console.log('Supports images');
case 'terminal':
default:
console.log('No image support');
}
```
Copyright 2017. `guess-terminal` is released under the MIT license.
```
yarn
yarn test --watch
```
```
yarn test
yarn build
yarn publish
```
```
npm install guess-terminal
```
```js