21 lines
291 B
Markdown
21 lines
291 B
Markdown
# inside-ci
|
|
|
|
Returns true if code is running inside CI, otherwise false.
|
|
|
|
# API
|
|
|
|
`const inside = require('inside-ci')`
|
|
|
|
# CLI
|
|
|
|
## `inside-ci` or `in-ci`
|
|
|
|
Returns error code 0 if inside CI.
|
|
|
|
* `in-ci && echo 'running inside CI'`
|
|
|
|
## `not-ci`
|
|
|
|
Inverse of the above:
|
|
|
|
`not-ci && husky install`
|