1.2.1 • Published 9 years ago
safety-switch v1.2.1
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('safety-switch@1.2.0')();
As its a bad idea to modify environment variables just for testing - the tests and example usage can be found in the online REPL: