{"maintainers":[{"name":"coolaj86","email":"coolaj86@gmail.com"},{"name":"cwmma","email":"calvin.metcalf@gmail.com"},{"name":"defunctzombie","email":"shtylman@gmail.com"}],"keywords":["assert"],"dist-tags":{"latest":"1.4.1"},"description":"commonjs assert - node.js api compatible","readme":"# assert\n\n[![Build Status](https://travis-ci.org/defunctzombie/commonjs-assert.svg?branch=master)](https://travis-ci.org/defunctzombie/commonjs-assert)\n\nThis module is used for writing unit tests for your applications, you can access it with require('assert').\n\nThe API is derived from the [commonjs 1.0 unit testing](http://wiki.commonjs.org/wiki/Unit_Testing/1.0) spec and the [node.js assert module](http://nodejs.org/api/assert.html)\n\n## assert.fail(actual, expected, message, operator)\nThrows an exception that displays the values for actual and expected separated by the provided operator.\n\n## assert(value, message), assert.ok(value, [message])\nTests if value is truthy, it is equivalent to assert.equal(true, !!value, message);\n\n## assert.equal(actual, expected, [message])\nTests shallow, coercive equality with the equal comparison operator ( == ).\n\n## assert.notEqual(actual, expected, [message])\nTests shallow, coercive non-equality with the not equal comparison operator ( != ).\n\n## assert.deepEqual(actual, expected, [message])\nTests for deep equality.\n\n## assert.notDeepEqual(actual, expected, [message])\nTests for any deep inequality.\n\n## assert.strictEqual(actual, expected, [message])\nTests strict equality, as determined by the strict equality operator ( === )\n\n## assert.notStrictEqual(actual, expected, [message])\nTests strict non-equality, as determined by the strict not equal operator ( !== )\n\n## assert.throws(block, [error], [message])\nExpects block to throw an error. error can be constructor, regexp or validation function.\n\nValidate instanceof using constructor:\n\n```javascript\nassert.throws(function() { throw new Error(\"Wrong value\"); }, Error);\n```\n\nValidate error message using RegExp:\n\n```javascript\nassert.throws(function() { throw new Error(\"Wrong value\"); }, /value/);\n```\n\nCustom error validation:\n\n```javascript\nassert.throws(function() {\n    throw new Error(\"Wrong value\");\n}, function(err) {\n    if ( (err instanceof Error) && /value/.test(err) ) {\n        return true;\n    }\n}, \"unexpected error\");\n```\n\n## assert.doesNotThrow(block, [message])\nExpects block not to throw an error, see assert.throws for details.\n\n## assert.ifError(value)\nTests if value is not a false value, throws if it is a true value. Useful when testing the first argument, error in callbacks.\n","repository":{"type":"git","url":"git://github.com/defunctzombie/commonjs-assert.git"},"users":{"pid":true,"gdbtek":true,"japh":true,"ninjatux":true,"jmorris":true,"kenjisan4u":true,"craigsapp":true,"simplyianm":true,"rsp":true,"heraklion":true,"itonyyo":true,"jeffb_incontact":true,"davidchubbs":true,"m0dred":true,"po":true,"liushoukai":true,"jprempeh":true,"shiva127":true,"fistynuts":true,"vwal":true,"craql":true,"cfleschhut":true,"almccann":true,"hyteer":true,"a1ip":true,"zhanghaili":true,"zombinary":true,"shaddyhm":true,"ondak":true,"piecioshka":true,"bapinney":true,"ingpdw":true,"yokubee":true,"mickey815":true,"phoenix-xsy":true,"n0f3":true,"gggauravgandhi":true,"lianer":true,"wangfeia":true,"amazingandyyy":true,"jota":true,"olonam":true,"wangnan0610":true,"jirqoadai":true,"mobeicaoyuan":true,"stone_breaker":true,"vitorluizc":true,"bufke":true,"ivan.marquez":true,"ray0214":true,"dada1134":true,"ironheartbj18":true,"karzanosman984":true,"rocket0191":true,"yinfxs":true,"chinawolf_wyp":true,"raycharles":true},"bugs":{"url":"https://github.com/defunctzombie/commonjs-assert/issues"},"license":"MIT","versions":{"0.4.9":{"author":{"name":"narwhal.js","url":"http://narwhaljs.org"},"name":"assert","description":"Node.JS assert module","keywords":["ender","assert"],"version":"0.4.9","homepage":"http://nodejs.org/docs/v0.4.9/api/assert.html","repository":{"type":"git","url":"git://github.com/coolaj86/nodejs-libs-4-browser.git"},"main":"./assert.js","directories":{"lib":"."},"engines":{"node":">= 0.2.0","ender":">= 0.5.0"},"dependencies":{"util":">= 0.4.9"},"devDependencies":{},"_npmJsonOpts":{"file":"/Users/coolaj86/.npm/assert/0.4.9/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"assert@0.4.9","_engineSupported":true,"_npmVersion":"1.0.15","_nodeVersion":"v0.4.8","_defaultsLoaded":true,"dist":{"shasum":"45faff1a58f718508118873dead940c8b51db939","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/assert/-/assert-0.4.9.tgz"},"scripts":{}},"1.0.0":{"name":"assert","description":"commonjs assert - node.js api compatible","keywords":["assert"],"version":"1.0.0","homepage":"https://github.com/defunctzombie/commonjs-assert","repository":{"type":"git","url":"git://github.com/defunctzombie/commonjs-assert.git"},"main":"./assert.js","dependencies":{"util":"0.10.0"},"devDependencies":{"mocha":"1.14.0"},"scripts":{"test":"mocha --ui qunit test.js"},"bugs":{"url":"https://github.com/defunctzombie/commonjs-assert/issues"},"_id":"assert@1.0.0","dist":{"shasum":"11e0629e3bbc13e293bf79570c9febe98b2d7997","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/assert/-/assert-1.0.0.tgz"},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"shtylman","email":"shtylman@gmail.com"},"maintainers":[{"name":"coolaj86","email":"coolaj86@gmail.com"},{"name":"shtylman","email":"shtylman@gmail.com"}],"directories":{}},"1.0.1":{"name":"assert","description":"commonjs assert - node.js api compatible","keywords":["assert"],"version":"1.0.1","homepage":"https://github.com/defunctzombie/commonjs-assert","repository":{"type":"git","url":"git://github.com/defunctzombie/commonjs-assert.git"},"main":"./assert.js","dependencies":{"util":"0.10.1"},"devDependencies":{"zuul":"~1.0.4","mocha":"1.14.0"},"scripts":{"test":"mocha --ui qunit test.js && zuul -- test.js"},"bugs":{"url":"https://github.com/defunctzombie/commonjs-assert/issues"},"_id":"assert@1.0.1","dist":{"shasum":"af89155b0d01a6dbc2c07803e8ecf94b605cb8f6","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/assert/-/assert-1.0.1.tgz"},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"shtylman","email":"shtylman@gmail.com"},"maintainers":[{"name":"coolaj86","email":"coolaj86@gmail.com"},{"name":"shtylman","email":"shtylman@gmail.com"}],"directories":{}},"1.0.2":{"name":"assert","description":"commonjs assert - node.js api compatible","keywords":["assert"],"version":"1.0.2","homepage":"https://github.com/defunctzombie/commonjs-assert","repository":{"type":"git","url":"git://github.com/defunctzombie/commonjs-assert.git"},"main":"./assert.js","dependencies":{"util":"0.10.1"},"devDependencies":{"zuul":"~1.0.9","mocha":"1.14.0"},"scripts":{"test":"mocha --ui qunit test.js && zuul -- test.js"},"bugs":{"url":"https://github.com/defunctzombie/commonjs-assert/issues"},"_id":"assert@1.0.2","dist":{"shasum":"aa45c4be60a06ffbf2fa88e81aec400e68de4da7","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/assert/-/assert-1.0.2.tgz"},"_from":".","_npmVersion":"1.3.17","_npmUser":{"name":"shtylman","email":"shtylman@gmail.com"},"maintainers":[{"name":"coolaj86","email":"coolaj86@gmail.com"},{"name":"shtylman","email":"shtylman@gmail.com"}],"directories":{}},"1.0.3":{"name":"assert","description":"commonjs assert - node.js api compatible","keywords":["assert"],"version":"1.0.3","homepage":"https://github.com/defunctzombie/commonjs-assert","repository":{"type":"git","url":"git://github.com/defunctzombie/commonjs-assert.git"},"main":"./assert.js","dependencies":{"util":"0.10.2"},"devDependencies":{"zuul":"~1.0.9","mocha":"1.14.0"},"scripts":{"test":"mocha --ui qunit test.js && zuul -- test.js"},"bugs":{"url":"https://github.com/defunctzombie/commonjs-assert/issues"},"_id":"assert@1.0.3","dist":{"shasum":"b4876fe43cd32fa93679f49e082e5c47e0e42db1","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/assert/-/assert-1.0.3.tgz"},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"shtylman","email":"shtylman@gmail.com"},"maintainers":[{"name":"shtylman","email":"shtylman@gmail.com"}],"directories":{}},"1.1.0":{"name":"assert","description":"commonjs assert - node.js api compatible","keywords":["assert"],"version":"1.1.0","homepage":"https://github.com/defunctzombie/commonjs-assert","repository":{"type":"git","url":"git://github.com/defunctzombie/commonjs-assert.git"},"main":"./assert.js","dependencies":{"util":"0.10.2"},"devDependencies":{"zuul":"~1.0.9","mocha":"1.14.0"},"scripts":{"test":"mocha --ui qunit test.js && zuul -- test.js"},"bugs":{"url":"https://github.com/defunctzombie/commonjs-assert/issues"},"_id":"assert@1.1.0","dist":{"shasum":"851f832b880525bb9f6c1bb1dfd93ea028247f23","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/assert/-/assert-1.1.0.tgz"},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"shtylman","email":"shtylman@gmail.com"},"maintainers":[{"name":"shtylman","email":"shtylman@gmail.com"}],"directories":{}},"1.1.1":{"name":"assert","description":"commonjs assert - node.js api compatible","keywords":["assert"],"version":"1.1.1","homepage":"https://github.com/defunctzombie/commonjs-assert","repository":{"type":"git","url":"git://github.com/defunctzombie/commonjs-assert.git"},"main":"./assert.js","dependencies":{"util":"0.10.2"},"devDependencies":{"zuul":"~1.0.9","mocha":"1.14.0"},"license":"MIT","scripts":{"test":"mocha --ui qunit test.js && zuul -- test.js"},"bugs":{"url":"https://github.com/defunctzombie/commonjs-assert/issues"},"_id":"assert@1.1.1","dist":{"shasum":"766549ef4a6014b1e19c7c53f9816eabda440760","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/assert/-/assert-1.1.1.tgz"},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"shtylman","email":"shtylman@gmail.com"},"maintainers":[{"name":"shtylman","email":"shtylman@gmail.com"}],"directories":{}},"1.1.2":{"name":"assert","description":"commonjs assert - node.js api compatible","keywords":["assert"],"version":"1.1.2","homepage":"https://github.com/defunctzombie/commonjs-assert","repository":{"type":"git","url":"git://github.com/defunctzombie/commonjs-assert.git"},"main":"./assert.js","dependencies":{"util":"0.10.3"},"devDependencies":{"zuul":"~1.10.2","mocha":"~1.21.4"},"license":"MIT","scripts":{"test":"mocha --ui qunit test.js && zuul -- test.js"},"gitHead":"2c34238b6ad053068680be5372b96721dec48fcb","bugs":{"url":"https://github.com/defunctzombie/commonjs-assert/issues"},"_id":"assert@1.1.2","_shasum":"adaa04c46bb58c6dd1f294da3eb26e6228eb6e44","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"shtylman","email":"shtylman@gmail.com"},"maintainers":[{"name":"coolaj86","email":"coolaj86@gmail.com"},{"name":"shtylman","email":"shtylman@gmail.com"}],"dist":{"shasum":"adaa04c46bb58c6dd1f294da3eb26e6228eb6e44","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/assert/-/assert-1.1.2.tgz"},"directories":{}},"1.2.0":{"name":"assert","description":"commonjs assert - node.js api compatible","keywords":["assert"],"version":"1.2.0","homepage":"https://github.com/defunctzombie/commonjs-assert","repository":{"type":"git","url":"git://github.com/defunctzombie/commonjs-assert.git"},"main":"./assert.js","dependencies":{"util":"0.10.3"},"devDependencies":{"zuul":"~1.10.2","mocha":"~1.21.4"},"license":"MIT","scripts":{"test":"mocha --ui qunit test.js && zuul -- test.js"},"gitHead":"d08b0bfb8ce5219594a1d4001d38da9ad561d251","bugs":{"url":"https://github.com/defunctzombie/commonjs-assert/issues"},"_id":"assert@1.2.0","_shasum":"26ecef6e9cde86d7817e4d9243deb9a191b9befa","_from":".","_npmVersion":"2.1.12","_nodeVersion":"0.10.33","_npmUser":{"name":"shtylman","email":"shtylman@gmail.com"},"maintainers":[{"name":"coolaj86","email":"coolaj86@gmail.com"},{"name":"shtylman","email":"shtylman@gmail.com"}],"dist":{"shasum":"26ecef6e9cde86d7817e4d9243deb9a191b9befa","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/assert/-/assert-1.2.0.tgz"},"directories":{}},"1.3.0":{"name":"assert","description":"commonjs assert - node.js api compatible","keywords":["assert"],"version":"1.3.0","homepage":"https://github.com/defunctzombie/commonjs-assert","repository":{"type":"git","url":"git://github.com/defunctzombie/commonjs-assert.git"},"main":"./assert.js","dependencies":{"util":"0.10.3"},"devDependencies":{"zuul":"~1.10.2","mocha":"~1.21.4"},"license":"MIT","scripts":{"test":"mocha --ui qunit test.js && zuul -- test.js"},"gitHead":"cc3c9020e9ca440bdc431f92570d676dd8a89a3c","bugs":{"url":"https://github.com/defunctzombie/commonjs-assert/issues"},"_id":"assert@1.3.0","_shasum":"03939a622582a812cc202320a0b9a56c9b815849","_from":".","_npmVersion":"2.1.12","_nodeVersion":"0.10.33","_npmUser":{"name":"shtylman","email":"shtylman@gmail.com"},"maintainers":[{"name":"coolaj86","email":"coolaj86@gmail.com"},{"name":"shtylman","email":"shtylman@gmail.com"}],"dist":{"shasum":"03939a622582a812cc202320a0b9a56c9b815849","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/assert/-/assert-1.3.0.tgz"},"directories":{}},"1.4.0":{"name":"assert","description":"commonjs assert - node.js api compatible","keywords":["assert"],"version":"1.4.0","homepage":"https://github.com/defunctzombie/commonjs-assert","repository":{"type":"git","url":"git://github.com/defunctzombie/commonjs-assert.git"},"main":"./assert.js","dependencies":{"buffer-shims":"1.0.0","util":"0.10.3"},"devDependencies":{"zuul":"~3.9.0","mocha":"~1.21.4"},"license":"MIT","scripts":{"test-node":"mocha --ui qunit test.js","test-browser":"zuul -- test.js","test":"npm run test-node && npm run test-browser","test-native":"TEST_NATIVE=true mocha --ui qunit test.js"},"gitHead":"e502eca15424e3118e0e01ffad3e057b274cfd13","bugs":{"url":"https://github.com/defunctzombie/commonjs-assert/issues"},"_id":"assert@1.4.0","_shasum":"a29a98e6febf47b8c31538637a8bf8373fed73e9","_from":".","_npmVersion":"3.8.6","_nodeVersion":"5.11.0","_npmUser":{"name":"cwmma","email":"calvin.metcalf@gmail.com"},"dist":{"shasum":"a29a98e6febf47b8c31538637a8bf8373fed73e9","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/assert/-/assert-1.4.0.tgz"},"maintainers":[{"name":"coolaj86","email":"coolaj86@gmail.com"},{"name":"cwmma","email":"calvin.metcalf@gmail.com"},{"name":"defunctzombie","email":"shtylman@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/assert-1.4.0.tgz_1463571352633_0.2970228053163737"},"directories":{}},"1.4.1":{"name":"assert","description":"commonjs assert - node.js api compatible","keywords":["assert"],"version":"1.4.1","homepage":"https://github.com/defunctzombie/commonjs-assert","repository":{"type":"git","url":"git://github.com/defunctzombie/commonjs-assert.git"},"main":"./assert.js","dependencies":{"util":"0.10.3"},"devDependencies":{"mocha":"~1.21.4","zuul":"~3.10.0","zuul-ngrok":"^4.0.0"},"license":"MIT","scripts":{"test-node":"mocha --ui qunit test.js","test-browser":"zuul -- test.js","test":"npm run test-node && npm run test-browser","test-native":"TEST_NATIVE=true mocha --ui qunit test.js","browser-local":"zuul --no-coverage --local 8000 -- test.js"},"gitHead":"ea25d53a51201cf268681c5ec37f7d51b2d82884","bugs":{"url":"https://github.com/defunctzombie/commonjs-assert/issues"},"_id":"assert@1.4.1","_shasum":"99912d591836b5a6f5b345c0f07eefc08fc65d91","_from":".","_npmVersion":"3.8.6","_nodeVersion":"5.11.0","_npmUser":{"name":"cwmma","email":"calvin.metcalf@gmail.com"},"dist":{"shasum":"99912d591836b5a6f5b345c0f07eefc08fc65d91","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/assert/-/assert-1.4.1.tgz"},"maintainers":[{"name":"coolaj86","email":"coolaj86@gmail.com"},{"name":"cwmma","email":"calvin.metcalf@gmail.com"},{"name":"defunctzombie","email":"shtylman@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/assert-1.4.1.tgz_1464703323424_0.46298269950784743"},"directories":{}}},"name":"assert","time":{"modified":"2017-07-21T07:08:33.094Z","created":"2011-06-30T00:30:08.354Z","0.4.9":"2011-06-30T00:30:08.699Z","1.0.0":"2013-11-22T18:46:47.035Z","1.0.1":"2013-12-18T02:20:33.846Z","1.0.2":"2013-12-19T03:18:16.080Z","1.0.3":"2013-12-20T15:27:42.122Z","1.1.0":"2013-12-29T04:37:51.334Z","1.1.1":"2014-02-07T17:13:56.404Z","1.1.2":"2014-08-29T03:33:31.188Z","1.2.0":"2014-12-21T18:24:52.866Z","1.3.0":"2014-12-24T02:46:30.815Z","1.4.0":"2016-05-18T11:35:54.924Z","1.4.1":"2016-05-31T14:02:04.361Z"},"readmeFilename":"README.md","homepage":"https://github.com/defunctzombie/commonjs-assert"}