{"_id":"empower-assert","_rev":"7-9c13c628d6011a18f33ba91fafeae8d5","name":"empower-assert","description":"Convert assert to power-assert on ESTree AST","dist-tags":{"latest":"2.0.0"},"versions":{"1.0.0":{"name":"empower-assert","description":"Convert assert to power-assert","version":"1.0.0","author":{"name":"Teppei Sato","email":"teppeis@gmail.com"},"main":"index.js","files":["index.js"],"scripts":{"lint":"eslint index.js 'test/*.js'","mocha":"mocha test","test":"npm run lint && npm run mocha"},"dependencies":{"estraverse":"^4.2.0"},"devDependencies":{"acorn":"^3.1.0","eslint":"^2.8.0","eslint-config-teppeis":"^2.0.4","espurify":"^1.5.1","mocha":"^2.4.5"},"homepage":"https://github.com/teppeis/empower-assert","repository":{"type":"git","url":"git+https://github.com/teppeis/empower-assert.git"},"bugs":{"url":"https://github.com/teppeis/empower-assert/issues"},"keywords":["assert","assertion","power-assert","test","testing"],"license":"MIT","gitHead":"b7a79d760f551d50ceb7d7186e630e24e85cc7ac","_id":"empower-assert@1.0.0","_shasum":"4939ea3a0cc18b445eba2deee9761ecab19ac347","_from":".","_npmVersion":"3.8.2","_nodeVersion":"5.9.0","_npmUser":{"name":"teppeis","email":"teppeis@gmail.com"},"maintainers":[{"name":"teppeis","email":"teppeis@gmail.com"}],"dist":{"shasum":"4939ea3a0cc18b445eba2deee9761ecab19ac347","tarball":"https://registry.npmjs.org/empower-assert/-/empower-assert-1.0.0.tgz","integrity":"sha512-ip7SIdljaHnwH4LTG7x3u2BLZ5ziN5oQSdNTxa5/l0snfblFFW0ov0whXbY0gzmpenfOYPzfENJixVtf8KI1aA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCUFDQC/PknK7LyGfpW4t1zu874qMUHN0pfd0mwK+fHtgIhAKokWcyoEg4nXLnvnJbD44fKPq44jPs6jMy9UyZAyRAJ"}]},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/empower-assert-1.0.0.tgz_1461255707947_0.9566416516900063"},"directories":{}},"1.0.1":{"name":"empower-assert","description":"Convert assert to power-assert on ESTree AST","version":"1.0.1","author":{"name":"Teppei Sato","email":"teppeis@gmail.com"},"main":"index.js","files":["index.js"],"scripts":{"lint":"eslint index.js 'test/*.js'","mocha":"mocha test","test":"npm run lint && npm run mocha"},"dependencies":{"estraverse":"^4.2.0"},"devDependencies":{"acorn":"^4.0.3","eslint":"^2.8.0","eslint-config-teppeis":"^2.0.4","espurify":"^1.5.1","mocha":"^3.1.2"},"homepage":"https://github.com/teppeis/empower-assert","repository":{"type":"git","url":"git+https://github.com/teppeis/empower-assert.git"},"bugs":{"url":"https://github.com/teppeis/empower-assert/issues"},"keywords":["assert","assertion","power-assert","test","testing"],"license":"MIT","gitHead":"8c643f8ede4afa3d3545a61f4eaaca9da3f72b3b","_id":"empower-assert@1.0.1","_shasum":"31e310abc065baa7c3a0487e6be5bbcc65f3c1de","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"teppeis","email":"teppeis@gmail.com"},"dist":{"shasum":"31e310abc065baa7c3a0487e6be5bbcc65f3c1de","tarball":"https://registry.npmjs.org/empower-assert/-/empower-assert-1.0.1.tgz","integrity":"sha512-fEX+Kkcf5NnkzjlFlgZFM9BF3IJzbUsTqw0Jynnc0+r9RB6PbNzKhH23NMK+FPIhraaRIyULRn9xlhcBz2xd1g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDw8dZjypLa56oBOAmMS2WqKM7VHPqq8D/6itGqeW7SJwIgHuZTvk0Wl7jKv/yRX+5q94yJDqj+S0PHahchaygq4pY="}]},"maintainers":[{"name":"teppeis","email":"teppeis@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/empower-assert-1.0.1.tgz_1479097972082_0.6926817214116454"},"directories":{}},"1.1.0":{"name":"empower-assert","description":"Convert assert to power-assert on ESTree AST","version":"1.1.0","author":{"name":"Teppei Sato","email":"teppeis@gmail.com"},"main":"index.js","files":["index.js"],"scripts":{"lint":"eslint index.js 'test/*.js'","mocha":"mocha test","test":"npm run lint && npm run mocha"},"dependencies":{"estraverse":"^4.2.0"},"devDependencies":{"acorn":"^4.0.3","eslint":"^2.8.0","eslint-config-teppeis":"^2.0.4","espurify":"^1.5.1","mocha":"^3.1.2"},"homepage":"https://github.com/teppeis/empower-assert","repository":{"type":"git","url":"git+https://github.com/teppeis/empower-assert.git"},"bugs":{"url":"https://github.com/teppeis/empower-assert/issues"},"keywords":["assert","assertion","power-assert","test","testing"],"license":"MIT","gitHead":"8056146d52c77368336f8e4a7c3c12c633a09c2e","_id":"empower-assert@1.1.0","_npmVersion":"5.6.0","_nodeVersion":"8.11.0","_npmUser":{"name":"teppeis","email":"teppeis@gmail.com"},"dist":{"integrity":"sha512-Ylck0Q6p8y/LpNzYeBccaxAPm2ZyuqBgErgZpO9KT0HuQWF0sJckBKCLmgS1/DEXEiyBi9XtYh3clZm5cAdARw==","shasum":"8d327fbe69a88af90dda98d1bfc9829d2a24fd62","tarball":"https://registry.npmjs.org/empower-assert/-/empower-assert-1.1.0.tgz","fileCount":3,"unpackedSize":5144,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHnvOMoHdO7nxXcY2lOdZ2loFbyU+zEzbjXsjUB+oK+bAiA/TMUrAqVmeIOk6ccPGxGdhnIBBQWp5C25xAsOn/LOSg=="}]},"maintainers":[{"name":"teppeis","email":"teppeis@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/empower-assert_1.1.0_1523620035097_0.7207106444185523"},"_hasShrinkwrap":false},"2.0.0":{"name":"empower-assert","description":"Convert assert to power-assert on ESTree AST","version":"2.0.0","author":{"name":"Teppei Sato","email":"teppeis@gmail.com"},"main":"index.js","files":["index.js"],"engines":{"node":">=6"},"scripts":{"lint":"eslint index.js 'test/*.js'","mocha":"mocha test","test":"npm run lint && npm run mocha"},"dependencies":{"estraverse":"^4.2.0"},"devDependencies":{"acorn":"^5.5.3","eslint":"^4.19.1","eslint-config-teppeis":"^6.9.0","espurify":"^1.7.0","mocha":"^5.1.1","prettier":"1.12.1"},"homepage":"https://github.com/teppeis/empower-assert","repository":{"type":"git","url":"git+https://github.com/teppeis/empower-assert.git"},"bugs":{"url":"https://github.com/teppeis/empower-assert/issues"},"keywords":["assert","assertion","power-assert","test","testing"],"license":"MIT","gitHead":"f2a2be6a4e2a2e4d36631c6a0b2814d554797182","_id":"empower-assert@2.0.0","_npmVersion":"5.8.0","_nodeVersion":"8.11.1","_npmUser":{"name":"teppeis","email":"teppeis@gmail.com"},"dist":{"integrity":"sha512-BKfvdPj7FBzBn+8Ncg4HMa7cgCCjjoogZdYTdPysK1g7Dlp5G30oUTanSYcK4g8GyXdhaXdQ1WYx1S0vW3XKeQ==","shasum":"b9e1b88bbf6b8ad46a82c907c9995c7dc002e257","tarball":"https://registry.npmjs.org/empower-assert/-/empower-assert-2.0.0.tgz","fileCount":3,"unpackedSize":5193,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa4w0oCRA9TVsSAnZWagAAVPgQAJBpITkPEtUWXB3OCuVt\n4BMIxo+dYZIndUMMOZ27nZ72fhNR2dl+20YOLq5CnHWwroCodmle16vckvW0\n3xk8a0klOjeoY1c9n+6AeEo/Qkg+JAF0fkEvnGN/ozCRuI9s5wiwJuL1qKsA\ngBuligg0K160KfMjWp2ikXHT8od5Bh9Ql/JFadHPK1z3Fvy6o6rPDee7QxdW\nR3gWBz2J28MWKdPQZuJfyCp6qJwPH60RQBTItYdGv+Jlw5cSOGg/ck2qfXjr\nk0xmLNbCcN9ThzBCOud4TjgA0TE+Jy74QyIEW+OWp5znU2b9lACVt3MKKcko\n8IUtQ2cy93iHBCb+VnMxf/Wb/eVT5DVAxOYTYW1bmpeLn51VIJxwGBKUJWRZ\naSYaq9+SbYxxzLH+2cqI1OiHOFt3uerp7zXTwGV8lg0X7UPitk2mEp5MiYAx\n/bWYd3hI+7tcnoxrtzBAKl6tCTrukAZwQhpZQ1MBVN42CaW25KnIcqrBQoXv\nwV5nkN1WPrLAQ+ay0diXYf0nwZIaIjgD7OqBAy6X9PrOmd0RBPfyQzoy6xAb\nAoQFKO+VswFNK8DQ3iyfRW4oaRclFz2UlGqI8MtbKk+zEERUDKabg/ylZpdd\naPnAShNQxjBfUuYR65f5cdAYsxRtgyTmu1ZdE6/sM3tprCTSalmT8mgBdipR\ngwlD\r\n=zUuo\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG0f7fkMeKU6RPm/UizaeWxWhZklOEOmo+inxArMZcvXAiA6UtjiqhF5m3bu2tCfYoY7SfHbY7pjSS2Wha6fUWa+Mw=="}]},"maintainers":[{"name":"teppeis","email":"teppeis@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/empower-assert_2.0.0_1524829479724_0.8270972002184174"},"_hasShrinkwrap":false}},"readme":"empower-assert\n====\n\nConvert [assert](https://nodejs.org/api/assert.html) to [power-assert](https://github.com/power-assert-js/power-assert) on [ESTree AST](https://github.com/estree/estree).\n\n[![NPM version][npm-image]][npm-url]\n![Node.js version support][node-version]\n[![build status][travis-image]][travis-url]\n[![Dependency Status][deps-image]][deps-url]\n![MIT License][license]\n\n## Install\n\n```bash\n$ npm install --save-dev empower-assert\n```\n\n## Usage\n\n```js\nconst empowerAssert = require('empower-assert');\nconst acorn = require('acorn');\nconst escodegen = require('escodegen');\n\nlet source = \n`'use strict';\nconst assert = require('assert');\nfunction add(a, b) {\n    assert(!isNaN(a));\n    assert.equal(typeof b, 'number');\n    assert.ok(!isNaN(b));\n    return a + b;\n}`;\n\nlet transformed = empowerAssert(acorn.parse(source));\nconsole.log(escodegen.generate(transformed));\n// 'use strict';\n// const assert = require('power-assert');\n// function add(a, b) {\n//     assert(!isNaN(a));\n//     assert.equal(typeof b, 'number');\n//     assert.ok(!isNaN(b));\n//     return a + b;\n// }\n```\n\n## License\n\nMIT License: Teppei Sato &lt;teppeis@gmail.com&gt;\n\nThis is a port of [babel-plugin-empower-assert](https://github.com/power-assert-js/babel-plugin-empower-assert).  \nCopyright (c) 2016 Takuto Wada, https://github.com/power-assert-js/babel-plugin-empower-assert\n\n[npm-image]: https://img.shields.io/npm/v/empower-assert.svg\n[npm-url]: https://npmjs.org/package/empower-assert\n[travis-image]: https://travis-ci.org/teppeis/empower-assert.svg?branch=master\n[travis-url]: https://travis-ci.org/teppeis/empower-assert\n[deps-image]: https://david-dm.org/teppeis/empower-assert.svg\n[deps-url]: https://david-dm.org/teppeis/empower-assert\n[node-version]: https://img.shields.io/badge/Node.js%20support-v6,v8,v10-brightgreen.svg\n[license]: https://img.shields.io/npm/l/empower-assert.svg\n","maintainers":[{"name":"teppeis","email":"teppeis@gmail.com"}],"time":{"modified":"2022-06-17T04:24:27.348Z","created":"2016-04-21T16:21:50.330Z","1.0.0":"2016-04-21T16:21:50.330Z","1.0.1":"2016-11-14T04:32:53.741Z","1.1.0":"2018-04-13T11:47:15.162Z","2.0.0":"2018-04-27T11:44:39.766Z"},"homepage":"https://github.com/teppeis/empower-assert","keywords":["assert","assertion","power-assert","test","testing"],"repository":{"type":"git","url":"git+https://github.com/teppeis/empower-assert.git"},"author":{"name":"Teppei Sato","email":"teppeis@gmail.com"},"bugs":{"url":"https://github.com/teppeis/empower-assert/issues"},"license":"MIT","readmeFilename":"README.md"}