dev-or-fail

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i dev-or-fail

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • mattecapu