{"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":"kevinmartensson@gmail.com"},{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"dist":{"shasum":"d4c1cc209c4924c5dfcee0ed0d2d3d067bb192da","tarball":"http://registry-npm.ywwl.com/claim/download/claim-1.2.0.tgz","integrity":"sha512-+zV5Ddv1R+8nEoQkAUbfx+xEt6lHHjR87OqG6y/T2xPZC6bGkU233vJYx/xgaFVUriRi8eqz7APnVf5u6SGRiQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDDm075CweF/JMf86znLRfleBHoTk9/MdaV4MR9nlGVxgIgQmlV3uXgk36p/GneQllbAwB2V02OwjONUylsGOmnOxk="}],"size":2279,"noattachment":false,"key":"/claim/-/claim-1.2.0.tgz"},"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":1432142921679,"_cnpm_publish_time":1432142921679,"dist-tags":{"latest":"1.4.0"}}