🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

dev-or-fail

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

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"

1.0.0
latest
Source
npm
Version published
Maintainers
1
Created
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

node_env

FAQs

Package last updated on 20 Mar 2016

Did you know?

Socket

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