{"dist":{"shasum":"ca70dc1261ddd8f25a1afabad3805c39fce263bc","tarball":"https://registry.npmjs.org/claire/-/claire-0.4.1.tgz","integrity":"sha512-Fd148tEhlyv8PThI947v//49q6Vp7HyMB9BhC2HtQdH+rU8TPrZq07TTN/tg1hngjYK7Fa4GbHwAfQ0aXIqJ6g==","signatures":[{"sig":"MEYCIQChnWNmuHeDeBxnwDhxJtWRemF5rYhFnf90WT5gWW0lfwIhAIP6BsOX7/QvUWJs+f02xktgWfAMGXoOn5hyMbvIYWQC","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./lib/index.js","name":"claire","_from":".","author":{"name":"Quildreen \"Sorella\" Motta","email":"quildreen@gmail.com"},"readme":"# Claire [![Build Status](https://travis-ci.org/killdream/claire.png)](https://travis-ci.org/killdream/claire) ![Dependencies Status](https://david-dm.org/killdream/claire.png)\n\n\nClaire is a random testing library for both property-based testing\n([QuickCheck][]-like) and random program generation ([ScalaCheck][] command's\nlike), which allows you to express your code's behaviours and invariants\nin a clear way.\n\n[QuickCheck]: https://github.com/nick8325/quickcheck\n[ScalaCheck]: https://github.com/rickynils/scalacheck\n\n### Example \n\n```js\nvar claire = require('claire')\nvar _      = claire.data\nvar forAll = claire.forAll\n\nvar commutative_p = forAll( _.Int, _.Int ).satisfy( function(a, b) {\n                      return a + b == b + a\n                    }).asTest()\n// + OK passed 100 tests.\n\n\nvar identity_p = forAll(_.Int).satisfy(function(a) {\n                   return a == a + 1\n                 })\n\nidentity_p.asTest({ verbose: true, times: 100 })()\n// <property failed>: ! Falsified after 1 tests, 1 failed.\n//\n// : Failure #1 --------------------\n//\n//\n// : The following arguments were provided:\n//   0 - 93 (<int>)\n//\n// (Stack trace)\n```\n\n\n### Installing\n\nThe easiest way is to grab it from NPM (use [Browserify][] if you're on a\nbrowser):\n\n    $ npm install claire\n    \nIf you **really** want to continue suffering with old and terrible module\nsystems (or use no module system at all), you can run `make bundle` yourself:\n\n    $ git clone git://github.com/killdream/claire\n    $ cd claire\n    $ npm install\n    $ make bundle\n    # Then use `dist/claire.umd.js` wherever you want.\n    \n[browserify]: https://github.com/substack/node-browserify\n\n\n### Documentation\n\nA reference of the API can be built using [Calliope][]:\n\n    $ npm install -g calliope\n    $ calliope build\n\n\nA fully narrated documentation explaining the concepts behind the\nlibrary is planned for a future release. Current WIP can be found at\nhttp://claire.readthedocs.org/.\n\n[Calliope]: http://github.com/killdream/calliope.git\n\n\n### Platform support\n\nClaire should work neatly in all ES5 platforms. ES3 platforms (IE8-,\netc) can use [es5-shim][] to provide the fallbacks necessary.\n\n[es5-shim]: https://github.com/kriskowal/es5-shim\n\nThings are frozen to ensure immutability, but legacy engines can do\nwithout, so `Object.freeze = function(a) { return a }` is okay.\n\n[![browser support](https://ci.testling.com/killdream/claire.png)](http://ci.testling.com/killdream/claire)\n\n\n### Tests\n\nFor node:\n\n    $ npm test\n\nFor the browser:\n\n    $ npm install -g brofist-browser\n    $ make test\n    $ brofist-browser serve test/specs\n    # Then point your browsers to the URL on yer console\n\n\n### Licence\n\nMIT/X11. ie.: do whatever you want.\n","license":"MIT","scripts":{"test":"make test","prepublish":"make prepublish"},"_npmUser":{"name":"killdream","email":"quildreen@gmail.com"},"calliope":{"output":"docs/api","packages":[{"files":["src/*.ls"]}],"copyright":"© 2013 Quildreen \"Sorella\" Motta"},"keywords":["testing","test","property-based testing","random testing","quickcheck"],"testling":{"files":"build/test/tap.js","browsers":["ie/6..latest","chrome/20..latest","firefox/15..latest","safari/latest","opera/11.0..latest","iphone/6","ipad/6","android-browser/4.2"]},"repository":{"url":"git://github.com/killdream/claire.git","type":"git"},"_npmVersion":"1.2.16","description":"Property-based testing library (à lá QuickCheck/ScalaCheck).","directories":{"doc":"docs"},"maintainers":[{"name":"killdream","email":"quildreen@gmail.com"}],"dependencies":{"boo":"~1.2.4","flaw":"~0.1.0","prelude-ls":"~0.6.0"},"readmeFilename":"README.md","devDependencies":{"brofist":"~0.2.3","es5-shim":"~2.0.5","LiveScript":"~1.1.1","browserify":"~2.4.3","brofist-tap":"~0.1.0","brofist-minimal":"~0.1.1"},"_id":"claire@0.4.1","version":"0.4.1"}