New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

is-hyper

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-hyper - npm Package Compare versions

Comparing version 1.0.0 to 2.0.0

index.d.ts

10

index.js

@@ -1,6 +0,6 @@

'use strict';
const semver = require('semver');
import process from 'node:process';
import semver from 'semver';
module.exports = semverRange => {
const env = process.env;
export default function isHyper(semverRange) {
const {env} = process;

@@ -16,2 +16,2 @@ if (env.TERM_PROGRAM !== 'Hyper' && env.TERM_PROGRAM !== 'HyperTerm') {

return true;
};
}
{
"name": "is-hyper",
"version": "1.0.0",
"description": "Check if you're running in Hyper",
"license": "MIT",
"repository": "sindresorhus/is-hyper",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
},
"engines": {
"node": ">=4"
},
"scripts": {
"test": "xo && ava"
},
"files": [
"index.js"
],
"keywords": [
"hyper",
"app",
"terminal",
"term",
"console",
"semver",
"version",
"check",
"detect",
"hyperterm"
],
"dependencies": {
"semver": "^5.3.0"
},
"devDependencies": {
"ava": "*",
"xo": "*"
}
"name": "is-hyper",
"version": "2.0.0",
"description": "Check if you're running in Hyper",
"license": "MIT",
"repository": "sindresorhus/is-hyper",
"funding": "https://github.com/sponsors/sindresorhus",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "https://sindresorhus.com"
},
"type": "module",
"exports": {
"types": "./index.d.ts",
"default": "./index.js"
},
"sideEffects": false,
"engines": {
"node": ">=18"
},
"scripts": {
"test": "xo && ava"
},
"files": [
"index.js",
"index.d.ts"
],
"keywords": [
"hyper",
"app",
"terminal",
"term",
"console",
"semver",
"version",
"check",
"detect",
"hyperterm"
],
"dependencies": {
"semver": "^7.6.0"
},
"devDependencies": {
"ava": "^6.1.2",
"xo": "^0.58.0"
}
}

@@ -1,13 +0,11 @@

# is-hyper [![Build Status](https://travis-ci.org/sindresorhus/is-hyper.svg?branch=master)](https://travis-ci.org/sindresorhus/is-hyper)
# is-hyper
> Check if you're running in [Hyper](https://hyper.is)
## Install
```sh
npm install is-hyper
```
$ npm install --save is-hyper
```
## Usage

@@ -18,3 +16,3 @@

```js
const isHyper = require('is-hyper');
import isHyper from 'is-hyper';

@@ -28,6 +26,5 @@ isHyper();

## API
### isHyper([semverRange])
### isHyper(semverRange?)

@@ -41,6 +38,1 @@ Returns a `boolean`.

Match a specific [version range](https://github.com/npm/node-semver#advanced-range-syntax).
## License
MIT © [Sindre Sorhus](https://sindresorhus.com)

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc