
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.

Claire is a random testing library for both property-based testing (QuickCheck-like) and random program generation (ScalaCheck command's like), which allows you to express your code's behaviours and invariants in a clear way.
var claire = require('claire')
var _ = claire.data
var forAll = claire.forAll
var commutative_p = forAll( _.Int, _.Int ).satisfy( function(a, b) {
return a + b == b + a
}).asTest()
// + OK passed 100 tests.
var identity_p = forAll(_.Int).satisfy(function(a) {
return a == a + 1
})
identity_p.asTest({ verbose: true, times: 100 })()
// <property failed>: ! Falsified after 1 tests, 1 failed.
//
// : Failure #1 --------------------
//
//
// : The following arguments were provided:
// 0 - 93 (<int>)
//
// (Stack trace)
The easiest way is to grab it from NPM (use Browserify if you're on a browser):
$ npm install claire
If you really want to continue suffering with old and terrible module
systems (or use no module system at all), you can run make bundle yourself:
$ git clone git://github.com/killdream/claire
$ cd claire
$ npm install
$ make bundle
# Then use `dist/claire.umd.js` wherever you want.
A reference of the API can be built using Calliope:
$ npm install -g calliope
$ calliope build
A fully narrated documentation explaining the concepts behind the library is planned for a future release. Current WIP can be found at http://claire.readthedocs.org/.
Claire should work neatly in all ES5 platforms. ES3 platforms (IE8-, etc) can use es5-shim to provide the fallbacks necessary.
Things are frozen to ensure immutability, but legacy engines can do
without, so Object.freeze = function(a) { return a } is okay.
For node:
$ npm test
For the browser:
$ npm install -g brofist-browser
$ make test
$ brofist-browser serve test/specs
# Then point your browsers to the URL on yer console
MIT/X11. ie.: do whatever you want.
FAQs
Property-based testing library (à lá QuickCheck/ScalaCheck).
The npm package claire receives a total of 679 weekly downloads. As such, claire popularity was classified as not popular.
We found that claire 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.