{"_id":"claim","_rev":"299532","name":"claim","description":"Tiny assertion library","dist-tags":{"latest":"1.4.0"},"maintainers":[{"name":"kevva","email":""},{"name":"sindresorhus","email":""}],"time":{"modified":"2021-06-03T19:03:10.000Z","created":"2015-04-21T18:24:43.823Z","1.4.0":"2015-09-09T08:46:51.977Z","1.3.0":"2015-05-20T17:36:49.152Z","1.2.0":"2015-05-20T17:28:41.679Z","1.1.0":"2015-05-20T16:08:08.791Z","1.0.1":"2015-04-21T18:32:34.805Z","1.0.0":"2015-04-21T18:24:43.823Z"},"users":{},"author":{"name":"Kevin Mårtensson","email":"kevinmartensson@gmail.com","url":"github.com/kevva"},"repository":{"type":"git","url":"https://github.com/kevva/claim"},"versions":{"1.4.0":{"name":"claim","version":"1.4.0","description":"Tiny assertion library","license":"MIT","repository":{"type":"git","url":"https://github.com/kevva/claim"},"author":{"name":"Kevin Mårtensson","email":"kevinmartensson@gmail.com","url":"github.com/kevva"},"maintainers":[{"name":"kevva","email":""},{"name":"sindresorhus","email":""}],"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && node test.js | tap-dot"},"files":["index.js"],"keywords":["assert","assertion","error","test","testing","ava"],"devDependencies":{"tap-dot":"^1.0.0","tape":"^4.2.0","xo":"*"},"gitHead":"ccb89f79da0ee292aef46284c586b3bdd6ded296","bugs":{"url":"https://github.com/kevva/claim/issues"},"homepage":"https://github.com/kevva/claim","_id":"claim@1.4.0","_shasum":"deadaca42d45ef79cc26026e27d5e9cf77b2dcb9","_from":".","_npmVersion":"2.14.2","_nodeVersion":"4.0.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"deadaca42d45ef79cc26026e27d5e9cf77b2dcb9","size":2242,"noattachment":false,"key":"/claim/-/claim-1.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/claim/download/claim-1.4.0.tgz"},"directories":{},"publish_time":1441788411977,"_cnpm_publish_time":1441788411977,"_hasShrinkwrap":false},"1.3.0":{"name":"claim","version":"1.3.0","description":"Tiny assertion library","license":"MIT","repository":{"type":"git","url":"git+https://github.com/kevva/claim.git"},"author":{"name":"Kevin Mårtensson","email":"kevinmartensson@gmail.com","url":"github.com/kevva"},"engines":{"node":">=0.10.0"},"scripts":{"test":"node test.js"},"files":["index.js"],"keywords":["assert","assertion","error","test","testing"],"devDependencies":{"ava":"0.0.4"},"gitHead":"50523df5faf2ed434cc419ed7546c524afed9335","bugs":{"url":"https://github.com/kevva/claim/issues"},"homepage":"https://github.com/kevva/claim#readme","_id":"claim@1.3.0","_shasum":"aa2edd9c1263d1d5ed4b74624d8c3d9f26ac013f","_from":".","_npmVersion":"2.10.0","_nodeVersion":"0.12.3","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"aa2edd9c1263d1d5ed4b74624d8c3d9f26ac013f","size":2297,"noattachment":false,"key":"/claim/-/claim-1.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/claim/download/claim-1.3.0.tgz"},"maintainers":[{"name":"kevva","email":""},{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1432143409152,"_cnpm_publish_time":1432143409152,"_hasShrinkwrap":false},"1.2.0":{"name":"claim","version":"1.2.0","description":"Tiny assertion library","license":"MIT","repository":{"type":"git","url":"git+https://github.com/kevva/claim.git"},"author":{"name":"Kevin Mårtensson","email":"kevinmartensson@gmail.com","url":"github.com/kevva"},"engines":{"node":">=0.10.0"},"scripts":{"test":"node test.js"},"files":["index.js"],"keywords":["assert","assertion","error","test","testing"],"devDependencies":{"ava":"0.0.4"},"gitHead":"6e0479029a68236b359e37d885879323bbd7b840","bugs":{"url":"https://github.com/kevva/claim/issues"},"homepage":"https://github.com/kevva/claim#readme","_id":"claim@1.2.0","_shasum":"d4c1cc209c4924c5dfcee0ed0d2d3d067bb192da","_from":".","_npmVersion":"2.10.0","_nodeVersion":"2.0.1","_npmUser":{"name":"kevva","email":"kevinmartensson@gmail.com"},"maintainers":[{"name":"kevva","email":""},{"name":"sindresorhus","email":""}],"dist":{"shasum":"d4c1cc209c4924c5dfcee0ed0d2d3d067bb192da","size":2279,"noattachment":false,"key":"/claim/-/claim-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/claim/download/claim-1.2.0.tgz"},"directories":{},"publish_time":1432142921679,"_cnpm_publish_time":1432142921679,"_hasShrinkwrap":false},"1.1.0":{"name":"claim","version":"1.1.0","description":"Tiny assertion library","license":"MIT","repository":{"type":"git","url":"git+https://github.com/kevva/claim.git"},"author":{"name":"Kevin Mårtensson","email":"kevinmartensson@gmail.com","url":"github.com/kevva"},"engines":{"node":">=0.10.0"},"scripts":{"test":"node test.js"},"files":["index.js"],"keywords":["assert","assertion","error","test","testing"],"dependencies":{"deep-equal":"^1.0.0"},"devDependencies":{"ava":"0.0.4"},"gitHead":"658847ac1a2781ef2570c58a5b4661fd16663abd","bugs":{"url":"https://github.com/kevva/claim/issues"},"homepage":"https://github.com/kevva/claim#readme","_id":"claim@1.1.0","_shasum":"219511831cb8b53ec2337a7523909a5d5ba2f2f9","_from":".","_npmVersion":"2.10.0","_nodeVersion":"0.12.3","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"219511831cb8b53ec2337a7523909a5d5ba2f2f9","size":2102,"noattachment":false,"key":"/claim/-/claim-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/claim/download/claim-1.1.0.tgz"},"maintainers":[{"name":"kevva","email":""},{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1432138088791,"_cnpm_publish_time":1432138088791,"_hasShrinkwrap":false},"1.0.1":{"name":"claim","version":"1.0.1","description":"Tiny assertion library","license":"MIT","repository":{"type":"git","url":"https://github.com/kevva/claim"},"author":{"name":"Kevin Mårtensson","email":"kevinmartensson@gmail.com","url":"https://github.com/kevva"},"engines":{"node":">=0.10.0"},"scripts":{"test":"node test.js"},"files":["index.js"],"keywords":[],"dependencies":{"deep-equal":"^1.0.0"},"devDependencies":{"ava":"0.0.4"},"gitHead":"06a78598743fdd5ebf9cec112b4fe5da619b6b9f","bugs":{"url":"https://github.com/kevva/claim/issues"},"homepage":"https://github.com/kevva/claim","_id":"claim@1.0.1","_shasum":"77bcb2a7d4af1d48265e617b9a28d005d3af94c0","_from":".","_npmVersion":"2.7.6","_nodeVersion":"1.7.1","_npmUser":{"name":"kevva","email":"kevinmartensson@gmail.com"},"maintainers":[{"name":"kevva","email":""},{"name":"sindresorhus","email":""}],"dist":{"shasum":"77bcb2a7d4af1d48265e617b9a28d005d3af94c0","size":1917,"noattachment":false,"key":"/claim/-/claim-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/claim/download/claim-1.0.1.tgz"},"directories":{},"publish_time":1429641154805,"_cnpm_publish_time":1429641154805,"_hasShrinkwrap":false},"1.0.0":{"name":"claim","version":"1.0.0","description":"Tiny assertion library","license":"MIT","repository":{"type":"git","url":"https://github.com/kevva/claim"},"author":{"name":"Kevin Mårtensson","email":"kevinmartensson@gmail.com","url":"https://github.com/kevva"},"engines":{"node":">=0.10.0"},"scripts":{"test":"node test.js"},"files":["index.js"],"keywords":[],"dependencies":{"deep-equal":"^1.0.0"},"devDependencies":{"ava":"0.0.4"},"gitHead":"72dec3df3457ce234e001a0b66fe7978ff13fbe7","bugs":{"url":"https://github.com/kevva/claim/issues"},"homepage":"https://github.com/kevva/claim","_id":"claim@1.0.0","_shasum":"43c73e931519d0241a0bb15e883ca36fdd4709e0","_from":".","_npmVersion":"2.7.6","_nodeVersion":"1.7.1","_npmUser":{"name":"kevva","email":"kevinmartensson@gmail.com"},"maintainers":[{"name":"kevva","email":""},{"name":"sindresorhus","email":""}],"dist":{"shasum":"43c73e931519d0241a0bb15e883ca36fdd4709e0","size":1919,"noattachment":false,"key":"/claim/-/claim-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/claim/download/claim-1.0.0.tgz"},"directories":{},"publish_time":1429640683823,"_cnpm_publish_time":1429640683823,"_hasShrinkwrap":false}},"readme":"# claim [![Build Status](https://travis-ci.org/kevva/claim.svg?branch=master)](https://travis-ci.org/kevva/claim)\n\n> Tiny assertion library\n\n\n## Install\n\n```\n$ npm install --save claim\n```\n\n\n## Usage\n\n```js\nvar claim = require('claim');\n\nclaim.true(true);\nclaim.false(false);\nclaim.is('foo', 'foo');\nclaim.not('foo', 'bar');\nclaim.same(['a', 'b'], ['a', 'b']);\nclaim.notSame({a: 'a'}, {a: 'b'});\nclaim.regexTest(/^abc$/, 'abc');\n```\n\n\n## API\n\n### .pass([message])\n\nPassing assertion.\n\n### .fail([message])\n\nFailing assertion.\n\n### .ok(value, [message])\n\nAssert that `value` is truthy.\n\n### .notOk(value, [message])\n\nAssert that `value` is falsy.\n\n### .true(value, [message])\n\nAssert that `value` is `true`.\n\n### .false(value, [message])\n\nAssert that `value` is `false`.\n\n### .is(value, expected, [message])\n\nAssert that `value` is equal to `expected`.\n\n### .not(value, expected, [message])\n\nAssert that `value` is not equal to `expected`.\n\n### .same(value, expected, [message])\n\nAssert that `value` is deep equal to `expected`.\n\n### .notSame(value, expected, [message])\n\nAssert that `value` is not deep equal to `expected`.\n\n### .throws(function, error, [message])\n\nAssert that `function` throws an error.\n\n`error` can be a constructor, regex or validation function.\n\n### .doesNotThrow(function, [message])\n\nAssert that `function` doesn't throw an `error`.\n\n### .regexTest(regex, contents, [message])\n\nAssert that `regex` matches `contents`.\n\n### .ifError(error, [message])\n\nAssert that `error` is falsy.\n\n\n## License\n\nMIT © [Kevin Mårtensson](https://github.com/kevva)\n","_attachments":{},"homepage":"https://github.com/kevva/claim","bugs":{"url":"https://github.com/kevva/claim/issues"},"license":"MIT"}