{"library":"cross-env-test","type":"library","category":null,"description":"cross-env-test is a command-line utility designed to provide a cross-platform method for checking environment variable values within npm scripts or CI/CD pipelines. It allows users to test if a specified environment variable is set to a particular value, exiting with a `0` (success) status code if the condition is met, and a non-zero (failure) code otherwise. This enables conditional execution of scripts, for example, running a build step only when not in a test environment. The current stable version is 0.1.1. Due to its minimal scope and stable functionality, it typically experiences an infrequent release cadence. Its key differentiator is simplifying cross-platform environment variable checks without requiring complex shell-specific logic or full JavaScript execution for simple comparisons, making npm scripts more robust across Windows, macOS, and Linux.","language":"javascript","status":"maintenance","version":"0.1.1","tags":["javascript","cross","platform","environment","variable","test","condition","npm","scripts"],"last_verified":"Sun Apr 19","install":[{"cmd":"npm install cross-env-test","imports":[]},{"cmd":"yarn add cross-env-test","imports":[]},{"cmd":"pnpm add cross-env-test","imports":[]}],"homepage":null,"github":"https://github.com/rangle/cross-env-test","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/cross-env-test","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}