# is-ci-cli

> Run different npm scripts in a CI environment

Latest version **2.2.0** (published 2021-01-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install is-ci-cli
pnpm add is-ci-cli
yarn add is-ci-cli
bun add is-ci-cli
```

Provides the commands `is-ci`, `is-ci-cli`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.2.0 |
| Published | 2021-01-18 |
| First published | 2017-05-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=8 |
| Dependencies | 2 |
| Unpacked size | 3.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 49 |
| Maintainers | cmurphy |
| Keywords | ci, cli, npm-scripts |

## Links

- npm: https://www.npmjs.com/package/is-ci-cli
- Repository: https://github.com/YellowKirby/is-ci-cli
- Homepage: https://github.com/YellowKirby/is-ci-cli#readme
- Issues: https://github.com/YellowKirby/is-ci-cli/issues
- npm.io page: https://npm.io/package/is-ci-cli

## Dependencies (2)

- [is-ci](https://npm.io/package/is-ci.md) ^2.0.0
- [cross-spawn](https://npm.io/package/cross-spawn.md) ^7.0.0

## Alternatives

- [random-seedable](https://npm.io/package/random-seedable.md) — 27.9K weekly downloads
- [n2words](https://npm.io/package/n2words.md) — 22.2K weekly downloads
- [@stdlib/math-base-special-factorialln](https://npm.io/package/@stdlib/math-base-special-factorialln.md) — 5.7K weekly downloads
- [@stdlib/math-base-special-abs2](https://npm.io/package/@stdlib/math-base-special-abs2.md) — 1.7K weekly downloads
- [commons-math-interpolation](https://npm.io/package/commons-math-interpolation.md) — 1.4K weekly downloads

## Recent versions

- 2.2.0 (latest) — 2021-01-18
- 2.1.2 — 2020-06-23
- 2.1.1 — 2020-06-10
- 2.1.0 — 2020-06-09
- 2.0.0 — 2019-10-09
- 1.1.1 — 2017-06-03
- 1.1.0 — 2017-05-25
- 1.0.0 — 2017-05-16

## README

# is-ci-cli ![CI](https://github.com/YellowKirby/is-ci-cli/workflows/CI/badge.svg)

Run different npm scripts in a CI environment

## Install

Ensure you have [Node.js](https://nodejs.org) version 8+ installed. Then run the following:

```sh
npm install --dev is-ci-cli
```

## Usage

In your package.json:

```js
"scripts": {
  "test": "is-ci-cli test:ci test:local"
}
```

When in a CI environment (as detected by
[is-ci](https://github.com/watson/is-ci)), this runs the first argument as an
npm (or yarn) script. Otherwise, run the 2nd argument (if provided)

## License

MIT

---
_Source: https://npm.io/package/is-ci-cli · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
