{"name":"flow-parser","version":"0.261.1","author":{"name":"Flow Team","email":"flow@fb.com"},"license":"MIT","_id":"flow-parser@0.261.1","homepage":"https://flow.org","bugs":{"url":"https://github.com/facebook/flow/issues"},"dist":{"shasum":"1ce84a0ea0f51f263be779c4988bf6ddd8e7aafb","tarball":"http://registry-npm.ywwl.com/flow-parser/download/flow-parser-0.261.1.tgz","fileCount":3,"integrity":"sha512-2l5bBKeVtT+d+1CYSsTLJ+iP2FuoR7zjbDQI/v6dDRiBpx3Lb20Z/tLS37ReX/lcodyGSHC2eA/Nk63hB+mkYg==","signatures":[{"sig":"MEYCIQCwQNm07XPRnF361srgoFI/bdCnpXnqNnCedChHX9hDhQIhAIDukeEjvG73QkZmze7W65XGKphDsth1v0dvlir6HPcB","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":745403,"size":170758,"noattachment":false,"key":"/flow-parser/-/flow-parser-0.261.1.tgz"},"main":"flow_parser.js","_from":"file:dist/npm-flow-parser.tgz","engines":{"node":">=0.4.0"},"scripts":{"test":"node test/run_tests.js","build":"make js"},"_npmUser":{"name":"flowtype","email":"flow@fb.com"},"_resolved":"/home/runner/work/flow/flow/dist/npm-flow-parser.tgz","_integrity":"sha512-2l5bBKeVtT+d+1CYSsTLJ+iP2FuoR7zjbDQI/v6dDRiBpx3Lb20Z/tLS37ReX/lcodyGSHC2eA/Nk63hB+mkYg==","repository":{"url":"git+https://github.com/facebook/flow.git","type":"git"},"_npmVersion":"10.8.2","description":"JavaScript parser written in OCaml. Produces ESTree AST","directories":{},"_nodeVersion":"18.20.6","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"chalk":"^4.1.2","minimist":">=1.2.6","ast-types":"^0.15.2","esprima-fb":"15001.1001.0-dev-harmony-fb"},"_npmOperationalInternal":{"tmp":"tmp/flow-parser_0.261.1_1739484717551_0.4241103526493448","host":"s3://npm-registry-packages-npm-production"},"readme":"# The flow-parser package\n\nThis package contains the Flow parser in its compiled-to-JavaScript form.\n\n# What is Flow\n\nSee [flow.org](https://flow.org/). The code for the Flow parser [lives on GitHub](https://github.com/facebook/flow/tree/master/src/parser).\n\n# What is the Flow Parser\n\nThe Flow Parser is a JavaScript parser written in OCaml. It produces an AST that conforms to the [ESTree spec](https://github.com/estree/estree) and that mostly matches what [esprima](http://esprima.org/) produces. The Flow Parser can be compiled to native code or can be compiled to JavaScript using [js_of_ocaml](http://ocsigen.org/js_of_ocaml/). This npm package contains the Flow parser compiled to JavaScript.\n\n# Usage\n\nYou can use the Flow parser in your browser or in node. To use in node you can just do\n\n```JavaScript\nrequire('flow-parser').parse('1+1', {});\n```\n\nTo use in the browser, you can add\n\n```HTML\n<script src=\"flow_parser.js\"></script>\n```\n\nwhich will make the `flow` object available to use like so:\n\n```JavaScript\nflow.parse('1+1', {});\n```\n\n## Options\n\nThe second argument to `flow.parse` is the options object. Currently supported options:\n\n* `all_comments` (boolean, default `true`) - include a list of all comments from the whole program\n* `comments` (boolean, default `true`) - attach comments to AST nodes (`leadingComments` and `trailingComments`)\n* `enums` (boolean, default `false`) - enable parsing of Flow enums\n* `esproposal_decorators` (boolean, default `false`) - enable parsing of decorators\n* `esproposal_export_star_as` (boolean, default `false`) - enable parsing of `export * as` syntax\n* `tokens` (boolean, default `false`) - include a list of all parsed tokens in a top-level `tokens` property\n* `types` (boolean, default `true`) - enable parsing of Flow types\n* `use_strict` (boolean, default `false`) - treat the file as strict, without needing a \"use strict\" directive\n","publish_time":1739484717849,"maintainers":[{"name":"mroch","email":"marshall@roch.com"},{"name":"gabelevi","email":"gabelevi@gmail.com"},{"name":"nmote","email":"nat@natmote.net"},{"name":"flowtype","email":"flow@fb.com"},{"name":"samwgoldman","email":"samwgoldman@gmail.com"},{"name":"avikchaudhuri","email":"avik.ch@gmail.com"}],"_cnpm_publish_time":1739484717849,"dist-tags":{"latest":"0.343.0"}}