Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Property-based testing for JavaScript via ClojureScript's test.check.
test.check is a Clojure property-based testing tool inspired by QuickCheck. The core idea of test.check is that instead of enumerating expected input and output for unit tests, you write properties about your function that should hold true for all inputs. This lets you write concise, powerful tests.
Checkers brings the power of test.check to plain ol' JavaScript.
npm install checkers --save
var checkers = require('checkers');
var gen = checkers.gen;
// Property is incorrect
checkers.forAll(
[gen.int],
function(i) {
return i * i > i;
}
).check(1000);
// Property is now correct
checkers.forAll(
[gen.int],
function(i) {
return i * i >= i;
}
).check(1000);
// Check property with a particular seed
checkers.forAll(
[gen.int],
function(i) {
return i * i >= i;
}
).check(1000, {seed: 1422111938215});
More coming soon!
See npm run
or package.json
for a list of available scripts.
You will need leiningen in order to build locally.
Distributed under the Eclipse Public License.
checkers is Copyright © 2015 Glen Mailer and contributors.
test.check is Copyright Rich Hickey, Reid Draper and contributors.
FAQs
Property-based testing for JavaScript via ClojureScript's test.check
The npm package checkers receives a total of 6 weekly downloads. As such, checkers popularity was classified as not popular.
We found that checkers 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.