preprocess

Preprocess directives in HTML, JavaScript, etc directives based off variable context
v3.2.0 URL: https://unpkg.com/preprocess@3.2.0/lib/preprocess.js
OpenBrowse Files
directiveENVenvironmentifdefifndefechoincludeexcludeprocesspreprocesspragma

gulp-preprocess

Gulp plugin to preprocess HTML, JavaScript, and other files based on custom context or environment configuration
v5.0.0 URL: https://unpkg.com/gulp-preprocess@5.0.0/index.js
OpenBrowse Files
gulpplugingulp-pluginpreprocessorhtmljavascriptcoffeescriptdebugenvironmentENVconditionalincludeexcludeifdefifndefecho

is-phantom

Check if current running context is PhantomJS.
v1.0.1 URL: https://unpkg.com/is-phantom@1.0.1/index.js
OpenBrowse Files
phantomtestcheckbrowserenvironmentcontextnode

environment

Check which JavaScript environment your code is running in at runtime: browser, Node.js, Bun, etc
v1.1.0 URL: https://unpkg.com/environment@1.1.0/index.js
OpenBrowse Files
runtimeenvironmentenvexecutionengineplatformcontextjsjavascriptischeckcheckingdetectdetectionbrowsernodebundenoelectronjsdomwebworkerworkerserviceworkermacosiosiphoneipadwindowslinuxandroidosoperatingsystem

jest-environment-emit

Environment with unlimited test event handlers
v1.2.0 URL: https://unpkg.com/jest-environment-emit@1.2.0/dist/index.js
OpenBrowse Files
environmentjestjest-environmentjest-circus