std-env
std-env copied to clipboard
Support for containers (docker, etc...)?
Describe the feature
I think it would be nice to also add an isDocker and/or isContainer methods, so everything you need is in one module and you don't have to install the is-docker or is-inside-container packages separately :)
Additional information
- [X] Would you be willing to help implement this feature?
For detecting docker from the main subpath, we need to use filesystem API which reduces platform agnostic nature of std-env.
We might port it as a subpath export though like { isDocker } from "std-env/docker") (https://github.com/unjs/listhen/blob/main/src/lib/docker.ts)
It seems a good way to me
PR welcome 👍🏼