Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
five-bells-shared
Advanced tools
Shared module among Five Bells Node.js apps
npm install --save five-bells-shared
This module contains a schema validator.
The log service uses mag and a custom formatter to generate pretty logs like this:
Set up the logger somewhere in your top-level app:
const hub = require('mag-hub')
const mag = require('mag')
const log = require('five-bells-shared/lib/log')
module.exports = log(mag, hub)
Then use it from anywhere using require('mag')
:
const log = require('mag')('transfers')
log.debug('very boring information')
log.info('somewhat useful information')
log.warn('sort of important information')
log.error('super-important information')
If you're using mag
in a module which is npm link
ed, it will receive its own instance of mag
and messages will not be formatted correctly. To solve this problem, you can install the mag
module globally and link it in all of your local modules:
sudo npm install -g mag
npm link mag # in each module directory
The log helper is useful in tests to mute the log output of tests and print it if the test fails.
const logHelper = require('five-bells-shared/testHelpers/log');
describe('Transfers', function () {
logHelper();
// ...
});
FAQs
Shared components for Five Bells projects.
The npm package five-bells-shared receives a total of 20 weekly downloads. As such, five-bells-shared popularity was classified as not popular.
We found that five-bells-shared demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.