Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

is-travis

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-travis - npm Package Compare versions

Comparing version
2.0.0
to
3.0.0
+19
index.d.ts
/**
Check if your code is running on [Travis](https://www.travis-ci.com).
@example
```
import isTravis from 'is-travis';
// On your local computer
console.log(isTravis);
//=> false
// On Travis
console.log(isTravis);
//=> true
```
*/
declare const isTravis: boolean;
export default isTravis;
+5
-2

@@ -1,2 +0,5 @@

'use strict';
module.exports = 'TRAVIS' in process.env && 'CI' in process.env;
import process from 'node:process';
const isTravis = 'TRAVIS' in process.env && 'CI' in process.env;
export default isTravis;
{
"name": "is-travis",
"version": "2.0.0",
"version": "3.0.0",
"description": "Check if your code is running on Travis",
"license": "MIT",
"repository": "sindresorhus/is-travis",
"funding": "https://github.com/sponsors/sindresorhus",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
"url": "https://sindresorhus.com"
},
"type": "module",
"exports": {
"types": "./index.d.ts",
"default": "./index.js"
},
"sideEffects": false,
"engines": {
"node": ">=6"
"node": ">=18"
},

@@ -19,3 +26,4 @@ "scripts": {

"files": [
"index.js"
"index.js",
"index.d.ts"
],

@@ -31,6 +39,5 @@ "keywords": [

"devDependencies": {
"ava": "*",
"import-fresh": "^2.0.0",
"xo": "*"
"ava": "^6.1.2",
"xo": "^0.58.0"
}
}

@@ -1,17 +0,15 @@

# is-travis [![Build Status](https://travis-ci.org/sindresorhus/is-travis.svg?branch=master)](https://travis-ci.org/sindresorhus/is-travis)
# is-travis
> Check if your code is running on [Travis](https://travis-ci.org)
> Check if your code is running on [Travis](https://www.travis-ci.com)
## Install
```sh
npm install is-travis
```
$ npm install is-travis
```
## Usage
```js
const isTravis = require('is-travis');
import isTravis from 'is-travis';

@@ -26,6 +24,1 @@ // On your local computer

```
## License
MIT © [Sindre Sorhus](https://sindresorhus.com)

Sorry, the diff of this file is not supported yet