{"_id":"weex-scripter","_rev":"3714091","name":"weex-scripter","description":"Weex <script> transformer","dist-tags":{"latest":"0.1.6"},"maintainers":[{"name":"hanks","email":"zhanghan.me@gmail.com"},{"name":"songsiqi","email":""}],"time":{"modified":"2025-02-13T05:58:53.000Z","created":"2016-04-08T02:45:36.631Z","0.1.6":"2018-02-07T08:32:42.085Z","0.1.5":"2016-10-17T07:04:41.036Z","0.1.4":"2016-04-19T08:45:15.082Z","0.1.3":"2016-04-16T17:21:38.618Z","0.1.2":"2016-04-08T02:45:36.631Z"},"users":{},"author":{"name":"songsiqi","email":"songsiqi2006@126.com"},"repository":{"type":"git","url":"git+https://github.com/weexteam/weex-scripter.git"},"versions":{"0.1.6":{"name":"weex-scripter","version":"0.1.6","description":"Weex <script> transformer","main":"index.js","scripts":{"test":"gulp test && npm run cover","cover":"node node_modules/isparta/bin/isparta cover node_modules/gulp-mocha/node_modules/.bin/_mocha -- --reporter dot"},"repository":{"type":"git","url":"git+https://github.com/weexteam/weex-scripter.git"},"keywords":["weex"],"author":{"name":"songsiqi","email":"songsiqi2006@126.com"},"license":"MIT","dependencies":{"browserify":"~13.0.0","escodegen":"~1.7.1","esprima":"~2.7.0","md5":"~2.1.0","resolve-bin":"^0.4.0"},"devDependencies":{"chai":"~3.4.1","gulp":"~3.9.0","gulp-jscs":"~3.0.2","gulp-mocha":"~2.2.0","sinon":"~1.17.2","sinon-chai":"~2.8.0","isparta":"~4.0.0"},"gitHead":"fd59fb24098a303c72845444d92a0b14adfbfb76","bugs":{"url":"https://github.com/weexteam/weex-scripter/issues"},"homepage":"https://github.com/weexteam/weex-scripter#readme","_id":"weex-scripter@0.1.6","_npmVersion":"5.0.2","_nodeVersion":"8.0.0","_npmUser":{"name":"hanks","email":"zhanghan.me@gmail.com"},"dist":{"shasum":"7a8aa30ef735f348a37b852a3bee10a4c1e7d71c","size":6078,"noattachment":false,"key":"/weex-scripter/-/weex-scripter-0.1.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/weex-scripter/download/weex-scripter-0.1.6.tgz"},"maintainers":[{"name":"hanks","email":"zhanghan.me@gmail.com"},{"name":"songsiqi","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/weex-scripter_0.1.6_1517992361805_0.42286697039405086"},"_hasShrinkwrap":false,"publish_time":1517992362085,"_cnpm_publish_time":1517992362085,"_cnpmcore_publish_time":"2021-12-17T06:20:39.535Z"},"0.1.5":{"name":"weex-scripter","version":"0.1.5","description":"Weex <script> transformer","main":"index.js","scripts":{"test":"gulp test && npm run cover","cover":"node node_modules/isparta/bin/isparta cover node_modules/gulp-mocha/node_modules/.bin/_mocha -- --reporter dot"},"repository":{"type":"git","url":"https://github.com/weexteam/weex-scripter.git"},"keywords":["weex"],"author":{"name":"songsiqi","email":"songsiqi2006@126.com"},"license":"GPL-3.0","dependencies":{"browserify":"~13.0.0","escodegen":"~1.7.1","esprima":"~2.7.0","md5":"~2.1.0","resolve-bin":"^0.4.0"},"devDependencies":{"chai":"~3.4.1","gulp":"~3.9.0","gulp-jscs":"~3.0.2","gulp-mocha":"~2.2.0","sinon":"~1.17.2","sinon-chai":"~2.8.0","isparta":"~4.0.0"},"gitHead":"692eb8d0304bdb23dadc3c997ff1ead17a6795a2","bugs":{"url":"https://github.com/weexteam/weex-scripter/issues"},"homepage":"https://github.com/weexteam/weex-scripter","_id":"weex-scripter@0.1.5","_shasum":"2fc84e6c7e6db38e1facdad77f17365ce9555021","_from":".","_npmVersion":"2.7.4","_nodeVersion":"0.12.2","_npmUser":{"name":"songsiqi","email":"songsiqi2006@126.com"},"maintainers":[{"name":"hanks","email":"zhanghan.me@gmail.com"},{"name":"songsiqi","email":""}],"dist":{"shasum":"2fc84e6c7e6db38e1facdad77f17365ce9555021","size":18019,"noattachment":false,"key":"/weex-scripter/-/weex-scripter-0.1.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/weex-scripter/download/weex-scripter-0.1.5.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/weex-scripter-0.1.5.tgz_1476687879345_0.04368136636912823"},"directories":{},"publish_time":1476687881036,"_hasShrinkwrap":false,"_cnpm_publish_time":1476687881036,"_cnpmcore_publish_time":"2021-12-17T06:20:39.777Z"},"0.1.4":{"name":"weex-scripter","version":"0.1.4","description":"Weex <script> transformer","main":"index.js","scripts":{"test":"gulp test && npm run cover","cover":"node node_modules/isparta/bin/isparta cover node_modules/gulp-mocha/node_modules/.bin/_mocha -- --reporter dot"},"repository":{"type":"git","url":"https://github.com/alibaba/weex_transformer.git"},"keywords":["weex"],"author":{"name":"songsiqi","email":"songsiqi2006@126.com"},"license":"Apache","dependencies":{"browserify":"~13.0.0","escodegen":"~1.7.1","esprima":"~2.7.0","md5":"~2.1.0","resolve-bin":"^0.4.0"},"devDependencies":{"chai":"~3.4.1","gulp":"~3.9.0","gulp-jscs":"~3.0.2","gulp-mocha":"~2.2.0","sinon":"~1.17.2","sinon-chai":"~2.8.0","isparta":"~4.0.0"},"bugs":{"url":"https://github.com/alibaba/weex_transformer/issues"},"homepage":"https://github.com/alibaba/weex_transformer","_id":"weex-scripter@0.1.4","_shasum":"1318ea4e83b348e1ab8a598a86da98a806e4820d","_from":".","_npmVersion":"2.7.4","_nodeVersion":"0.12.2","_npmUser":{"name":"songsiqi","email":"songsiqi2006@126.com"},"maintainers":[{"name":"hanks","email":"zhanghan.me@gmail.com"},{"name":"songsiqi","email":""}],"dist":{"shasum":"1318ea4e83b348e1ab8a598a86da98a806e4820d","size":9523,"noattachment":false,"key":"/weex-scripter/-/weex-scripter-0.1.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/weex-scripter/download/weex-scripter-0.1.4.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/weex-scripter-0.1.4.tgz_1461055512671_0.12828301009722054"},"directories":{},"publish_time":1461055515082,"_hasShrinkwrap":false,"_cnpm_publish_time":1461055515082,"_cnpmcore_publish_time":"2021-12-17T06:20:40.009Z"},"0.1.3":{"name":"weex-scripter","version":"0.1.3","description":"Weex <script> transformer","main":"index.js","scripts":{"test":"gulp test && npm run cover","cover":"node node_modules/isparta/bin/isparta cover node_modules/gulp-mocha/node_modules/.bin/_mocha -- --reporter dot"},"repository":{"type":"git","url":"https://github.com/alibaba/weex_transformer.git"},"keywords":["weex"],"author":{"name":"songsiqi","email":"songsiqi2006@126.com"},"license":"Apache","dependencies":{"browserify":"~13.0.0","escodegen":"~1.7.1","esprima":"~2.7.0","md5":"~2.1.0","resolve-bin":"^0.4.0"},"devDependencies":{"chai":"~3.4.1","gulp":"~3.9.0","gulp-jscs":"~3.0.2","gulp-mocha":"~2.2.0","sinon":"~1.17.2","sinon-chai":"~2.8.0","isparta":"~4.0.0"},"bugs":{"url":"https://github.com/alibaba/weex_transformer/issues"},"homepage":"https://github.com/alibaba/weex_transformer","_id":"weex-scripter@0.1.3","_shasum":"b425f64c58dd2db76657522dcbe0f1bc65442432","_from":".","_npmVersion":"2.7.4","_nodeVersion":"0.12.2","_npmUser":{"name":"songsiqi","email":"songsiqi2006@126.com"},"maintainers":[{"name":"hanks","email":"zhanghan.me@gmail.com"},{"name":"songsiqi","email":""}],"dist":{"shasum":"b425f64c58dd2db76657522dcbe0f1bc65442432","size":9567,"noattachment":false,"key":"/weex-scripter/-/weex-scripter-0.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/weex-scripter/download/weex-scripter-0.1.3.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/weex-scripter-0.1.3.tgz_1460827296303_0.4262552063446492"},"directories":{},"publish_time":1460827298618,"_hasShrinkwrap":false,"_cnpm_publish_time":1460827298618,"_cnpmcore_publish_time":"2021-12-17T06:20:40.217Z"},"0.1.2":{"name":"weex-scripter","version":"0.1.2","description":"Weex <script> transformer","main":"index.js","scripts":{"test":"gulp test && npm run cover","cover":"node node_modules/isparta/bin/isparta cover node_modules/gulp-mocha/node_modules/.bin/_mocha -- --reporter dot"},"repository":{"type":"git","url":"https://github.com/alibaba/weex_transformer.git"},"keywords":["weex"],"author":{"name":"songsiqi","email":"songsiqi2006@126.com"},"license":"Apache","dependencies":{"browserify":"~13.0.0","escodegen":"~1.7.1","esprima":"~2.7.0","md5":"~2.1.0"},"devDependencies":{"chai":"~3.4.1","gulp":"~3.9.0","gulp-jscs":"~3.0.2","gulp-mocha":"~2.2.0","sinon":"~1.17.2","sinon-chai":"~2.8.0","isparta":"~4.0.0"},"bugs":{"url":"https://github.com/alibaba/weex_transformer/issues"},"homepage":"https://github.com/alibaba/weex_transformer","_id":"weex-scripter@0.1.2","_shasum":"0f9816fe38ae498275d7c5893ccb398837f89e5c","_from":".","_npmVersion":"2.7.4","_nodeVersion":"0.12.2","_npmUser":{"name":"songsiqi","email":"songsiqi2006@126.com"},"maintainers":[{"name":"hanks","email":"zhanghan.me@gmail.com"},{"name":"songsiqi","email":""}],"dist":{"shasum":"0f9816fe38ae498275d7c5893ccb398837f89e5c","size":5517,"noattachment":false,"key":"/weex-scripter/-/weex-scripter-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/weex-scripter/download/weex-scripter-0.1.2.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/weex-scripter-0.1.2.tgz_1460083534119_0.6869973833672702"},"directories":{},"publish_time":1460083536631,"_hasShrinkwrap":false,"_cnpm_publish_time":1460083536631,"_cnpmcore_publish_time":"2021-12-17T06:20:40.443Z"}},"readme":"# Weex `<script>` Transformer\n\n[![NPM version][npm-image]][npm-url]\n[![Build status][circle-image]][circle-url]\n[![Downloads][downloads-image]][downloads-url]\n\n[npm-image]: https://img.shields.io/npm/v/weex-scripter.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/weex-scripter\n[circle-image]: https://circleci.com/gh/weexteam/weex-scripter.svg?style=svg\n[circle-url]: https://circleci.com/gh/weexteam/weex-scripter/tree/master\n[downloads-image]: https://img.shields.io/npm/dm/weex-scripter.svg?style=flat-square\n[downloads-url]: https://npmjs.org/package/weex-scripter\n\ntransform JavaScript\n\n## API\n\n- `fix(code)`: automatically add `data: {function () {return {...}}}` to init component data from `data: {...}`\n- `parseAndReplaceRequire(code)`: parse third party js required in `<script>`, return the modified code and collect requires\n    * note that `require` is automatically changed to `browserifyRequire` because of the built-in `require` in `js-framework`\n- `getBundle(requires)`: bundle all the third party js required in `<script>` by using `browserify`\n","_attachments":{},"homepage":"https://github.com/weexteam/weex-scripter#readme","bugs":{"url":"https://github.com/weexteam/weex-scripter/issues"},"license":"MIT"}