GitXplorerGitXplorer
w

is-ci

public
388 stars
17 forks
0 issues

Commits

List of commits on branch master.
Unverified
81c6f7757e0d5bf00866b078a69035d597b55e09

release: v4.1.0

ssibiraj-s committed a month ago
Unverified
116335d1f0b1b9c6dcf31130445e3023ebe8352e

feat: add types

ssibiraj-s committed a month ago
Unverified
91104fd9aecfb98522bd427fa250de985cb1f94f

release: v4.0.0

ssibiraj-s committed a month ago
Unverified
658c179805475ce5f8f9fadaf22dc961eb4f7484

Bump dependencies

ssibiraj-s committed a month ago
Unverified
6bae6da07ef8dc03f9cb0f6cd9fb1db0393ecd22

release: v3.0.1

ssibiraj-s committed 3 years ago
Unverified
d255b33a00454f738be11fd8680b6a5afb40f8fb

chore: update devDependencies

ssibiraj-s committed 3 years ago

README

The README file for this repository.

is-ci

Returns true if the current environment is a Continuous Integration server.

Please open an issue if your CI server isn't properly detected :)

npm Tests js-standard-style

Installation

npm install is-ci --save

Programmatic Usage

const isCI = require('is-ci')

if (isCI) {
  console.log('The code is running on a CI server')
}

CLI Usage

For CLI usage you need to have the is-ci executable in your PATH. There's a few ways to do that:

  • Either install the module globally using npm install is-ci -g
  • Or add the module as a dependency to your app in which case it can be used inside your package.json scripts as is
  • Or provide the full path to the executable, e.g. ./node_modules/.bin/is-ci
is-ci && echo "This is a CI server"

Supported CI tools

Refer to ci-info docs for all supported CI's

License

MIT