{"_id":"console-assert","_rev":"3340269","name":"console-assert","description":"Standardizer for node's console.assert","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"qfox","email":"zxqfox@gmail.com"}],"time":{"modified":"2024-07-10T08:27:08.000Z","created":"2016-03-24T21:41:21.602Z","1.0.0":"2016-03-24T21:41:21.602Z"},"users":{},"author":{"name":"Alexey Yaroshevich","email":"zxqfox@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/zxqfox/console-assert.git"},"versions":{"1.0.0":{"name":"console-assert","version":"1.0.0","description":"Standardizer for node's console.assert","main":"index.js","scripts":{"test":"node test"},"repository":{"type":"git","url":"git+https://github.com/zxqfox/console-assert.git"},"keywords":["console","assert","polyfill","node"],"author":{"name":"Alexey Yaroshevich","email":"zxqfox@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/zxqfox/console-assert/issues"},"homepage":"https://github.com/zxqfox/console-assert#readme","gitHead":"86d6a59f556ed0db73ed316bbb8d69242a99bc9f","_id":"console-assert@1.0.0","_shasum":"70167028ef08ec1667a0c687205a8360eb117367","_from":".","_npmVersion":"2.14.20","_nodeVersion":"4.4.0","_npmUser":{"name":"qfox","email":"zxqfox@gmail.com"},"dist":{"shasum":"70167028ef08ec1667a0c687205a8360eb117367","size":1700,"noattachment":false,"key":"/console-assert/-/console-assert-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/console-assert/download/console-assert-1.0.0.tgz"},"maintainers":[{"name":"qfox","email":"zxqfox@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/console-assert-1.0.0.tgz_1458855679416_0.6194980840664357"},"directories":{},"publish_time":1458855681602,"_hasShrinkwrap":false,"_cnpm_publish_time":1458855681602,"_cnpmcore_publish_time":"2021-12-16T23:35:11.259Z"}},"readme":"# console-assert\n\nSimple `console.assert` polyfill for node since existing realization throws instead of printing error.\n\nSee:\n- Issue in nodejs repository: https://github.com/nodejs/node/issues/5340\n- Draft specification: https://github.com/DeveloperToolsWG/console-object/blob/master/api.md#consoleassertexpression-object\n\n## Why?\n\nBecause when you trying to write polymorphic code you can't use console.assert in node env.\n\n## How to use?\n\nInstall module via npm:\n```\nnpm i console-assert\n```\n\nWrite this somewhere when you need it:\n```js\nrequire('console-assert').browserify();\n```\n\n> NB: Module patchs global console.assert and if you need to rollback behaviour\nyou have to just run `require('console-assert').restore();`.\n\n## License\n\n[The MIT License](http://qfox.mit-license.org/)\n","_attachments":{},"homepage":"https://github.com/zxqfox/console-assert#readme","bugs":{"url":"https://github.com/zxqfox/console-assert/issues"},"license":"MIT"}