Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
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:
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');
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();
// ...
});
JSONSigning module provides API for adding signature block, and verifying it, in a JSON object. The format follows JSON Cleartext Signature (JCS) specification.
JSONSigning.sign (json, cryptoType, privateKey, publicKey)
json : JSON object. Must not have "signature" block at the top level.
cryptoType : "PS256" for RSA PSS, or "ES256" for ECDSA
privateKey : Private key.
For RSA, it can be a PEM format string, or jsrsasign RSA key object.
For ECDSA, it has to be jsrsasign ECDSA key object.
publicKey : Public key.
This is not needed for
For ECDSA, it has to be jsrsasign ECDSA key object.
Returns copy of JSON object with "signature" block added. It does not modify the original JSON object.
JSONSigning.verify (json, cryptoType, publicKey)
json : JSON object. Must have "signature" block at the top level.
cryptoType : "PS256" for RSA PSS, or "ES256" for ECDSA
publicKey : Public key.
For RSA, it can be a PEM format string, or jsrsasign RSA key object.
For ECDSA, it has to be jsrsasign ECDSA key object.
Returns true (signature is valid) or false (otherwise)
FAQs
Shared components for Five Bells projects.
The npm package five-bells-shared receives a total of 79 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.