
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
crash-course
Advanced tools
The simplest testing framework, ever. Browser friendly, too.
Node:
npm install --save crash-course
Bower:
bower install crash-course --save
Bower continued (or just download the script and save it somewhere):
<script src="/path-to-the-script/crash.js"></script>
require.js compatible, too.
Node:
'use strict';
var crash_course = require('crash-course');
var someTest = crash_course('someTest');
someTest.case(function(t) {
// do things...
if (passed) {
t.pass('yay!');
} else {
t.fail('oh noes.');
}
});
Browser:
'use strict';
// assumes you've already included crash.js
var someTest = crash_course('someTest');
someTest.case(function(t) {
// stuff
if (passed) {
t.pass('yippee!');
} else {
t.fail('ummmmm. well, then.');
}
});
Requiring the module returns a function:
crash_course(description[, fancy])Returns a test with the provided description, and if provided, fancy describes whether it should output with colors. Note: fancy has no effect in browsers, since you can't output color to the console in the browser.
test.case(testFunction)The testFunction receives 1 argument: a new Case.
test.freeform()Returns a new Case. Useful when testing things that require a regular this context.
CaseThe Case class has 3 methods:
pass, fail, and warnEach function outputs the corresponding status for the test case and accepts an optional description.
However, if you call more than one or call one more than once, the function will throw (you can't call pass and then fail, or call pass twice).
FAQs
The simplest testing framework, ever. Browser friendly, too.
The npm package crash-course receives a total of 3 weekly downloads. As such, crash-course popularity was classified as not popular.
We found that crash-course 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.