{"name":"espower-source","description":"Power Assert instrumentor from source to source, with source-map","version":"2.3.0","author":{"name":"Takuto Wada","email":"takuto.wada@gmail.com","url":"https://github.com/twada"},"bugs":{"url":"https://github.com/power-assert-js/espower-source/issues"},"contributors":[{"name":"azu","url":"https://github.com/azu"},{"name":"James Talmage","url":"https://github.com/jamestalmage"},{"name":"Yoshiki Shibukawa","url":"https://github.com/shibukawa"},{"name":"Yiyu He","url":"https://github.com/dead-horse"},{"name":"Eward Song","url":"https://github.com/shepherdwind"}],"dependencies":{"acorn":"^5.0.0","acorn-es7-plugin":"^1.0.10","convert-source-map":"^1.1.1","empower-assert":"^1.0.0","escodegen":"^1.10.0","espower":"^2.1.1","estraverse":"^4.0.0","merge-estraverse-visitors":"^1.0.0","multi-stage-sourcemap":"^0.2.1","path-is-absolute":"^1.0.0","xtend":"^4.0.0"},"devDependencies":{"gulp":"^3.9.0","gulp-jshint":"^2.0.2","gulp-mocha":"^5.0.0","gulp-util":"^3.0.6","jshint":"^2.9.4","jshint-stylish":"^2.0.1","mocha":"^5.0.0","source-map":"^0.5.7"},"engines":{"node":">=0.8.0","npm":">=1.2.10"},"files":["CHANGELOG.md","MIT-LICENSE.txt","README.md","index.js","package.json"],"homepage":"https://github.com/power-assert-js/espower-source","keywords":["power-assert","assert","assertion","test","testing"],"license":"MIT","main":"./index.js","repository":{"type":"git","url":"git://github.com/power-assert-js/espower-source.git"},"scripts":{"preversion":"npm test","lint":"gulp lint","test":"gulp test"},"gitHead":"61648f21de169a2843a83175cfa546dc737d3f72","_id":"espower-source@2.3.0","_npmVersion":"6.1.0","_nodeVersion":"10.4.0","_npmUser":{"name":"twada","email":"takuto.wada@gmail.com"},"maintainers":[{"name":"twada","email":"takuto.wada@gmail.com"}],"dist":{"integrity":"sha512-Wc4kC4zUAEV7Qt31JRPoBUc5jjowHRylml2L2VaDQ1XEbnqQofGWx+gPR03TZAPokAMl5dqyL36h3ITyMXy3iA==","shasum":"43e93b2c18af50018bdb1bea7a1271f4a1c125f4","tarball":"http://registry-npm.ywwl.com/espower-source/download/espower-source-2.3.0.tgz","fileCount":5,"unpackedSize":22194,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbH0dTCRA9TVsSAnZWagAAybwP/2ZnH16nEX3ArKroAGB8\n1EPzYJNwahFhDmdcyep8Bwg29BFIBa4fl/HzGdqu8/lPojhKJNDtj65crZOi\n24cbaFez7Q20GqSEyZ87bsezrWkC2aN7qTeVdvjS0+C+oa/G70GJrftxu1xb\nBroobfXSrPCzfTpdkIaDcjiLFeUCtgPAJGw9VebEAkZIYCTgMXfwnk5tEEyf\nw5cjl4bmQ5BBf8uxEcZS1fI0SRBptXk223YFvmaF5ZAZuN5Lx+42dfs5PqsB\n3q/FGQN08E33mElEKjFrEo4l4sT4VZnEGlt9zp38Q5ku0LAqs71QuEZ+N+Qd\ng355h4ECfTwTgTl0rNXwXbNyHC8RhwmRycqxI5n+CVx+1maGw88e7DyzTaq1\nNQhZ6PwdnNdr9wYg1xMtiU9QDx2XXC098umabrJ2b67TSTkhDxd08LOsb+hf\n8kQGYSdtHt91mQ0dRQFBIsyrTQZ/LnoYDzDhHroyo374ofWsSWM/7f7alcwy\niK5Avasnj00oZZiI8LxWRw6AbEI7shvejVYPcnfmFK3yuJhVBuEu6KuT/nc8\nlsBAVUYIZStWEx+vf+8T7wG9nm9SdxlASSkU+y+pDHV41T1Z6ybYujIsfDmm\n0OPoDlLONur4CnCBTL3O9hEYmdiyywXjlJa3kdjgztKbkduixECWON8aeXKx\ndwGO\r\n=wRnp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDAYRoqOxe35WRachba8TP/QKSqde1XykPGdLHaZvOh1AIgO/MysL1XzElbndY8mWzTRXge3caDRS1kF6/1Z2kJHQg="}],"size":6881,"noattachment":false,"key":"/espower-source/-/espower-source-2.3.0.tgz"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/espower-source_2.3.0_1528776530783_0.20092077013622012"},"_hasShrinkwrap":false,"readme":"espower-source\n================================\n\n[![Build Status][travis-image]][travis-url]\n[![NPM package][npm-image]][npm-url]\n[![Dependency Status][depstat-image]][depstat-url]\n[![License][license-image]][license-url]\n\n\nPower Assert instrumentor from code to code, with SourceMap.\n\n\nDESCRIPTION\n---------------------------------------\n`espower-source` is a source code transformer that applies [espower](https://github.com/power-assert-js/espower) to target code.\n\n`espower` manipulates assertion expression in the form of ECMAScript AST defined in [The ESTree Spec](https://github.com/estree/estree) (formerly known as [Mozilla SpiderMonkey Parser API](https://developer.mozilla.org/en-US/docs/SpiderMonkey/Parser_API)), to instrument power-assert feature into the code. SourceMap information is appended in SourceMap Comment syntax at the end of returned code.\n\nPull-requests, issue reports and patches are always welcomed. See [power-assert](https://github.com/power-assert-js/power-assert) project for more documentation.\n\n\nCHANGELOG\n---------------------------------------\nSee [CHANGELOG](https://github.com/power-assert-js/espower-source/blob/master/CHANGELOG.md)\n\n\nAPI\n---------------------------------------\n\n### var modifiedCode = espowerSource(originalCode, [filepath], [options])\n\n| return type |\n|:------------|\n| `string`    |\n\n`espowerSource` function manipulates `originalCode` then returns (transformed) JavaScript code as string. SourceMap information is appended in SourceMap Comment syntax at the end of returned code.\n\n#### originalCode\n\n| type     | default value |\n|:---------|:--------------|\n| `string` | N/A           |\n\nOriginal JavaScript source code that is a source of code transformation. If not specified, then `EspowerError` will be thrown.\n\n#### filepath (optional but recommended)\n\n| type     | default value |\n|:---------|:--------------|\n| `string` | N/A           |\n\nFilepath of `originalCode`. espower-source stores filepath information for later reporting. If not specified, `options.path` will be used. If neither filepath nor options.path are not specified, espower-source transforms code as usual but SourceMap will not be generated and attached.\n\n#### options (optional)\n\n| type     | default value |\n|:---------|:--------------|\n| `object` | (return value of `espower.defaultOptions()` but with `destructive` option is `true`) |\n\nConfiguration options for `espower` module. If not passed, default options (Same as [espower.defaultOptions()](https://github.com/power-assert-js/espower#var-options--espowerdefaultoptions)) will be used, but `options.destructive` is set to `true`, and if `options.path` is falsy, `options.path` is set to value of `filepath` argument by espower-source module.\n\n\n#### options.ecmaVersion\n\n| type     | default value |\n|:---------|:--------------|\n| `number` | `2018`        |\n\nThe ECMAScript version to parse and analyze. Must be either 3, 5, 6 (2015), 2016, 2017, or 2018.\n\n\n#### options.sourceType\n\n| type     | default value |\n|:---------|:--------------|\n| `string` | `'module'`    |\n\nThe source type of the code. Must be either `\"script\"` or `\"module\"`.\n\n\nINSTALL\n---------------------------------------\n\n### via npm\n\nInstall\n\n    $ npm install --save-dev espower-source\n\n\nOUR SUPPORT POLICY\n---------------------------------------\n\nWe support Node under maintenance. In other words, we stop supporting old Node version when [their maintenance ends](https://github.com/nodejs/LTS).\n\nThis means that any other environment is not supported.\n\nNOTE: If espower-source works in any of the unsupported environments, it is purely coincidental and has no bearing on future compatibility. Use at your own risk.\n\n\nAUTHOR\n---------------------------------------\n* [Takuto Wada](https://github.com/twada)\n\n\nCONTRIBUTORS\n---------------------------------------\n* [azu](https://github.com/azu)\n* [James Talmage (jamestalmage)](https://github.com/jamestalmage)\n* [Yoshiki Shibukawa (shibukawa)](https://github.com/shibukawa)\n* [Yiyu He (dead-horse)](https://github.com/dead-horse)\n* [Eward Song (shepherdwind)](https://github.com/shepherdwind)\n\n\nLICENSE\n---------------------------------------\nLicensed under the [MIT](https://github.com/power-assert-js/espower-source/blob/master/MIT-LICENSE.txt) license.\n\n\n[npm-url]: https://npmjs.org/package/espower-source\n[npm-image]: https://badge.fury.io/js/espower-source.svg\n\n[travis-url]: https://travis-ci.org/power-assert-js/espower-source\n[travis-image]: https://secure.travis-ci.org/power-assert-js/espower-source.svg?branch=master\n\n[depstat-url]: https://gemnasium.com/power-assert-js/espower-source\n[depstat-image]: https://gemnasium.com/power-assert-js/espower-source.svg\n\n[license-url]: https://github.com/power-assert-js/espower-source/blob/master/MIT-LICENSE.txt\n[license-image]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat\n","publish_time":1528776530913,"_cnpm_publish_time":1528776530913,"dist-tags":{"latest":"2.3.0"}}