Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

is-hyper

sindresorhus16MIT2.0.0TypeScript support: included

Check if you're running in Hyper

hyper, app, terminal, term, console, semver, version, check, detect, hyperterm

readme

is-hyper

Check if you're running in Hyper

Install

npm install is-hyper

Usage

Here running in Hyper 0.7.0:

import isHyper from 'is-hyper';

isHyper();
//=> true

isHyper('>=0.8');
//=> false

API

isHyper(semverRange?)

Returns a boolean.

semverRange

Type: string

Match a specific version range.