@trenskow/guard
v1.1.14
Published
A simple guard command.
Downloads
235
Readme
@trenskow/guard
A simple library for guarding against conditions
Usage
const guard = require('@trenskow/guard')('my-application');
guard(myCondition, 'My condition failed.');
// If `!myCondition` is true, then process exits with message logged.
LICENSE
See LICENSE