Security News
cURL Project and Go Security Teams Reject CVSS as Broken
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
bitwane-test
Advanced tools
A test output version of bitwane.
npm install bitwane-test
import { TestLogger } from '../';
const logger = new TestLogger();
//Print a diff of an object
logger.diff({
one: 1,
two: 2,
thing: 'thing1',
sub: {
subone: 1,
subtwo: 2
}
}, {
one: 1,
three: 'three',
thing: 'thing2',
sub: {
subone: 1
}
});
//Print a diff a string.
logger.diff(`I am thing one`, `I am thing two`)
//Print a diff a string, and indent it.
logger.diff(`I am a thing one`, `I am thing two`, 4)
//Print an ok (log) line, and indent it 8 spaces.
logger.ok('This is ok', null, 8);
//Print a notok (error) line.
logger.notok('This is not ok');
//Print an formatted ok line with a red colored word.
logger.ok('The $(red)%(what)$() is red.', {what: 'moon'});
The constructor takes the same options as bitwane with an extra option named maps
.
const logger = new TestLogger({
//These are all default values
maps: {
ok(value){
return logSymbols.success + ' ' + value;
},
notok(value){
return logSymbols.error + ' ' + value;
},
diff(lvalue, rvalue, indent){
//Return a diff string
//An inline diff is the default
}
}
});
bitwane-test
inherits from bitwane. It is meant for formatting test output.
FAQs
The test formatting version of bitwane
We found that bitwane-test 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
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.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.