1.2.1 • Published 9 years ago

safety-switch v1.2.1

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

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:

See tests on tonicdev.com

1.2.1

9 years ago

1.2.0

9 years ago

1.1.0

9 years ago

1.0.1

9 years ago

0.0.1

9 years ago