which-term
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.2 • Public • Published

    which-term

    Return which terminal is being used to run the current command.

    Installation

    npm install which-term
    

    Usage

    index.ejs

    import {terminal} from 'which-term';
    
    console.log(terminal);
    // "iterm"
    

    index.mjs

    const {terminal} = require('which-term');
    
    console.log(terminal);
    // "iterm"
    
    export declare enum Terminal {
      Unknown = "unknown",
      iTerm = "iterm",
      Apple = "apple",
      Hyper = "hyper",
      alacritty = "alacritty",
    }
    export declare const terminal: Terminal;
    export default terminal;

    Install

    npm i which-term

    DownloadsWeekly Downloads

    1

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    4.99 kB

    Total Files

    7

    Last publish

    Collaborators

    • jarred