inside-ci/README.md
2024-11-22 06:12:55 +00:00

25 lines
580 B
Markdown

# inside-ci
Returns true if code is running inside CI, otherwise false.
This also works as a drop-in replacement for anyone currently using `is-ci`.
If your CI is not being detected, feel free to [add an issue for it](https://git.nfp.is/TheThing/inside-ci/issues) or hit me up on [X (formerly Twitter)](https://x.com/TheThing89) or on discord as `thething_89`.
# 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`