Socket
Socket
Sign inDemoInstall

dev-or-fail

Package Overview
Dependencies
1
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    dev-or-fail

CLI utility that fails if NODE_ENV is not set to "development"


Version published
Maintainers
1
Install size
41.1 kB
Created

Readme

Source

dev-or-fail

CLI utility that fails if NODE_ENV is not set to "development".

Installation

npm i dev-or-fail -S

Usage

Use it to prevent a script from being executed in production, like

"scripts": {
    "clean": "dev-or-fail && do_the_cleaning || echo \"Can't do this in production\"",
    "truncate_tables": "dev-or-fail && trunc_tab || echo \"Can't do this in production\""
}

License

MIT

Keywords

FAQs

Last updated on 20 Mar 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc