safety-switch

1.2.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i safety-switch

Weekly Downloads

6

Version

1.2.1

License

MIT

Last publish

Collaborators

  • ashcoolman