Get the configuration for macOS applications
npm install macos-app-config
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