+19
| /** | ||
| 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; |
+14
-7
| { | ||
| "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" | ||
| } | ||
| } |
+5
-12
@@ -1,17 +0,15 @@ | ||
| # is-travis [](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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
2554
15.15%2
-33.33%5
25%18
800%0
-100%Yes
NaN24
-22.58%