@trenskow/guard

1.0.17 • Public • Published

@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

Readme

Keywords

none

Package Sidebar

Install

npm i @trenskow/guard

Weekly Downloads

2

Version

1.0.17

License

BSD-3-Clause

Unpacked Size

3.24 kB

Total Files

5

Last publish

Collaborators

  • trenskow