{"size": 750, "ext": "js", "max_stars_repo_path": "consts.js", "max_stars_repo_name": "AsyncBanana/nanospinner", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "consts.js", "max_issues_repo_name": "AsyncBanana/nanospinner", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "consts.js", "max_forks_repo_name": "AsyncBanana/nanospinner", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 28.8461538462, "max_line_length": 77, "alphanum_fraction": 0.56}
const tty = require('tty')

const isWindow = process.platform === 'win32'
const isLinux = process.env.TERM === 'linux'
const isCI =
  process.env.CI ||
  process.env.WT_SESSION ||
  process.env.ConEmuTask === '{cmd::Cmder}' ||
  process.env.TERM_PROGRAM === 'vscode' ||
  process.env.TERM === 'xterm-256color' ||
  process.env.TERM === 'alacritty'
const isTTY = tty.isatty(1) && process.env.TERM !== 'dumb' && !process.env.CI

const isUnicodSupport = !isWindow ? !isLinux : isCI
const symbols = {
  frames: isTTY
    ? isUnicodSupport
      ? ['⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏']
      : ['-', '\\', '|', '/']
    : ['-'],
  tick: isUnicodSupport ? '✔' : '√',
  cross: isUnicodSupport ? '✖' : '×'
}

module.exports = { isTTY, symbols }
