{"author":{"name":"Zach Carter","email":"zach@carter.name","url":"http://zaa.ch"},"name":"reflect","description":"JavaScript parser adhering to Mozilla's parser API","version":"0.0.6","keywords":["parser","ast","reflect","javascript"],"repository":{"type":"git","url":"git://github.com/zaach/reflect.js.git"},"bugs":{"url":"http://github.com/zaach/reflect.js/issues"},"main":"dist/reflect.js","engines":{"node":">= 0.4"},"devDependencies":{"jison":"*","uglify-js":"*"},"scripts":{"test":"node test/all-tests.js"},"dependencies":{},"_npmUser":{"name":"zaach","email":"zack.carter@gmail.com"},"_id":"reflect@0.0.6","optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.21","_nodeVersion":"v0.6.17","_defaultsLoaded":true,"dist":{"shasum":"76e3047a41409ec43a270f27c32d0b8505763cb2","tarball":"http://registry-npm.ywwl.com/reflect/download/reflect-0.0.6.tgz","integrity":"sha512-Ew5LA6XbEf/BlFNsD+7jISshvNDKqhONikcjSEzrdcbspHaX8d0/Gv7OnY/IUiDKFM3pb8RDMW+uCgDnNg+PxQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDGqQyWEn748FEQC3iOmBgJr9j3oCJ2xeDea9dHmEe/bQIhAKGwh8jGKtRwW4ZtJjKweWHOaSmJ5vuHIX0gPFnu9XRh"}],"size":94656,"noattachment":false,"key":"/reflect/-/reflect-0.0.6.tgz"},"readme":"![Reflect.js](https://github.com/zaach/reflect.js/raw/master/reflectjs.png \"Reflect.js\")\n\nReflect.js is a JavaScript (ES3 compatible) implementation of [Mozilla's Parser API](https://developer.mozilla.org/en/SpiderMonkey/Parser_API). It does not currently support some of Mozilla's extensions, such as generators, list comprehensions, `for each`, E4X, etc. but may eventually support ones that are, or become Harmony proposals.\nBuilders are also supported.\n\nParsing really large files can be slow, for reasons [articulated](http://www.andychu.net/ecmascript/RegExp-Enhancements.html) by Andy Chu.\n\n\nDownload\n========\nYou can download a minified-standalone version of reflect.js to embed in web pages [here](https://raw.github.com/zaach/reflect.js/master/standalone/reflect.js).\n\nInstall\n=======\nReflect.js is available as a CommonJS module for Node.js. Simply install it with npm:\n\n    npm install reflect\n\nUse\n=======\n\n    var Reflect = require('reflect');\n\n    var ast = Reflect.parse(\"var a = 4 + 7\");\n\n    console.log(Reflect.stringify(ast, \"  \"));\n\nRefer to [Mozilla's docs](https://developer.mozilla.org/en/SpiderMonkey/Parser_API) for details on the AST interface.\n\nBuilders\n=======\nThe optional [builder](https://developer.mozilla.org/en/SpiderMonkey/Parser_API#Builder_objects) parameter to Reflect.parse() makes it possible to construct user-specified data from the parser, rather than the default Node objects.\n\nThe reflect.js module exports the [default builder](https://raw.github.com/zaach/reflect.js/master/lib/nodes.js) so you can redefine only the node constructors you care about and leave the rest default.\n\n    var Reflect = require('reflect');\n    var builder = Reflect.builder;\n\n    // redefine callback for variable declarations\n    builder[\"variableDeclaration\"] = function (kind, declarators, loc) { ... };\n\n    var ast = Reflect.parse(\"var a = 4 + 7\", {builder: builder});\n\nLicense\n=======\nMIT X Licensed.\n","maintainers":[{"name":"zaach","email":"zack.carter@gmail.com"}],"directories":{},"publish_time":1338954493938,"_cnpm_publish_time":1338954493938,"dist-tags":{"latest":"0.1.3"}}