safety-switch
v1.2.1
Published
A zero-config safety switch that will hard exit the process, unless the environment variable SAFETY_SWITCH_IS_RELEASED is exactly set to 'true'
Readme
safety-switch
Intro
This is a simple, zero-config safety switch which will call process.exit(), unless the environment variable SAFETY_SWITCH_IS_RELEASED is equal to true
Usage & tests
require('[email protected]')();
As its a bad idea to modify environment variables just for testing - the tests and example usage can be found in the online REPL:
