Hacker News new | ask | show | jobs
by watson 2824 days ago
Hi, co-creator of volkswagen, is-ci, and ci-info here. I extracted is-ci into its own module during the time I wrote volkswagen. It then turned out a lot of people wanted a module like that for actual useful things. But they wanted more info than simply "is this a CI server or not" (which was all that volkswagen cared about). So I made ci-info and moved the logic into that module and then made is-ci inherit from that, so to not have to duplicate the logic
1 comments

Which is largely understandable, but shouldn't ci-info have obsoleted is-ci?
You're free to just depend on ci-info directly if that's all you need of course. The is-ci module does give you one added benefit however: It allows you to run this on the command line:

$ is-ci && echo "I'm running in a CI environment"

But of course that could technically be baked into ci-info. It's just more convenient to use with npx and to reason about if it's a self-contained module

You're asking why someone doesn't want a lower number of published npm libraries on their resume?