{"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":"kevinmartensson@gmail.com"},{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"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","tarball":"http://registry-npm.ywwl.com/claim/download/claim-1.4.0.tgz","integrity":"sha512-aZY5Xxq5ecNYa3hUlS2UWPIkkXEdOg7QdOepnZhzdtk/7+T23e60EAL5V1gDlOCmAPEdm4l2bBYYESxisCyL+g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID3CnY3XxVmceZ3+9ZDJ3vWQM1q50QW8OX+Z38QmHLSWAiALn8SAdodMRbIanS1rasp19gCknuS7OX50nLxtp0xRQA=="}],"size":2242,"noattachment":false,"key":"/claim/-/claim-1.4.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":1441788411977,"_cnpm_publish_time":1441788411977,"dist-tags":{"latest":"1.4.0"}}