os-env

Version License: Apache--2.0

> Manage environment variables, PATH, and rc files ## Install ```sh npm install --save os-env ``` ## Usage ### `defaultRcPath` (variable) ### `RcOptions` (type) ### `sourceRCInRc` (variable) handles adding conditions to source rc file from .bashrc and .profile ### `finalizeRC` (function) **Parameters:** - rcOptions (`RcOptions`) **returns:** Promise ### `escapeString` (function) **Parameters:** - valGiven (`string`) - shouldEscapeSpace (`boolean`) **returns:** any ### `AddEnvOptions` (type) ### `addEnv` (function) Add an environment variable. This function is cross-platforms and works in all the local or CI systems. **Parameters:** - name (`string`) - valGiven (`string`) - givenOptions (`Partial`) **returns:** Promise ### `addPath` (function) Add a path to the PATH environment variable. This function is cross-platforms and works in all the local or CI systems. **Parameters:** - path (`string`) - givenOptions (`Partial`) **returns:** Promise ## 🤝 Contributing You can sponsor my work here: https://github.com/sponsors/aminya Pull requests, issues and feature requests are welcome. See the [Contributing guide](https://github.com/aminya/setup-cpp/blob/master/CONTRIBUTING.md).