@trenskow/guard
v1.1.10
Published
A simple guard command.
Downloads
756
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