Five Bells Shared
Shared module among Five Bells Node.js apps
Installation
npm install --save five-bells-shared
Schema Validator
This module contains a schema validator.
Log Service
The log service uses mag and a custom formatter to generate pretty logs like this:
Usage
const log = require('five-bells-shared/services/log')('transfers');
log.debug('very boring information');
log.info('somewhat useful information');
log.warn('sort of important information');
log.error('super-important information');
Log Test Helper
The log helper is useful in tests to mute the log output of tests and print it if the test fails.
Usage
const logHelper = require('five-bells-shared/testHelpers/log');
describe('Transfers', function () {
logHelper();
});