1.2.1 • Published 8 years ago

safety-switch v1.2.1

Weekly downloads
3
License
MIT
Repository
github
Last release
8 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

8 years ago

1.2.0

8 years ago

1.1.0

8 years ago

1.0.1

8 years ago

0.0.1

8 years ago