inside-ci/README.md

22 lines
291 B
Markdown
Raw Permalink Normal View History

2024-11-18 23:24:04 +00:00
# inside-ci
Returns true if code is running inside CI, otherwise false.
2024-11-18 23:57:35 +00:00
# API
`const inside = require('inside-ci')`
2024-11-18 23:57:35 +00:00
# CLI
2024-11-19 10:46:15 +00:00
## `inside-ci` or `in-ci`
2024-11-18 23:57:35 +00:00
Returns error code 0 if inside CI.
2024-11-18 23:57:35 +00:00
* `in-ci && echo 'running inside CI'`
2024-11-19 10:46:15 +00:00
## `not-ci`
Inverse of the above:
`not-ci && husky install`