{"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","tarball":"http://registry-npm.ywwl.com/claim/download/claim-1.1.0.tgz","integrity":"sha512-2kFZB+dYm6IrWCVBefV9YUQnkhBifNPlOKdCafIhKVVAwaaC2oMqfO4smdzgqackJAssswDjMQgwALI9trm/xA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBNDg6/5ObaLMpnzDaBlqsiiWbCgGU4xakkbmFYZMwkoAiEA2bYkwgARG9rwf9oWvWIldIF/BUjCIJEITmf7WVHcVl4="}],"size":2102,"noattachment":false,"key":"/claim/-/claim-1.1.0.tgz"},"maintainers":[{"name":"kevva","email":"kevinmartensson@gmail.com"},{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"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","publish_time":1432138088791,"_cnpm_publish_time":1432138088791,"dist-tags":{"latest":"1.4.0"}}