{"name":"meriyah","version":"0.1.8-dev.20190516","keywords":["parsing","ecmascript","typescript","javascript","lexer","scanner","parser","performance","estree","es2018","es2019","es2020","esnext","ast","lightweight"],"author":{"name":"KFlash"},"license":"ISC","_id":"meriyah@0.1.8-dev.20190516","maintainers":[{"name":"meriyah","email":"klechon123@gmail.com"}],"homepage":"https://github.com/meriyah/meriyah","bugs":{"url":"https://github.com/meriyah/meriyah/issues"},"dist":{"shasum":"2337a2d93922cffa1e8da009ae7415cc70ee608e","tarball":"http://registry-npm.ywwl.com/meriyah/download/meriyah-0.1.8-dev.20190516.tgz","fileCount":70,"integrity":"sha512-RtVTgcigyDTR6lcKtMCzpfDFUDnX98OrVcnxH6PJY+9xyawFfHLHfcrO+Fq5pxgkqRmza2icrLiJ/12ysLxSrA==","signatures":[{"sig":"MEYCIQDcrMVNdMcZ2kCSaV0twndH+Mtr2Q6fWZrwH1tGmJIDTQIhAKbFdJ2AnqP99cn1OeWg5yerowWRHiWRiRXsP/Pcj5g2","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":2133639,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc3KjUCRA9TVsSAnZWagAADP8QAIePW/MRHWCB64OoNJfd\nncAljP8X2UZhrvxuakniW7k41R2AkIqop/yr31xlfON4m8pr8jZXv/ooPrdT\nfeku0/MVrJoATLd3kMQRSrU45SUZcbahPvNBF0EAulp1F0ePUDhONOUIPPcO\n4OcEMTfClh9wYd1+RS5FsMqI9UB5IjpSuJiS0vqzxchtnktAecR92YKe8o+b\nqtSxTRS12XNvWdb88X8F3KWE7RbsFfeoCOU2aF8BQ3yve1CmX6XqIbASoIzr\nz/8W1pkFJT+y9qFGzn5bsexL0ToTLWZZtyvdL/4D42g2OGhmjWyChOIPstL2\nNmsQxcsw6GNbNlpELySkoCrn7acH8xIFnmzHgYUZ3xPAPgE5/R4ZkkGTEh8s\nUm4IbWnMfBT1tgZOQBY48+19ZMEvPz1D+KmuV9a+YpPx4xitTLEqDANb5NQ4\nW+vxQSWsGKwSGrR8XvRrOtFFeqYOs5Q0tvBfhR1UUwtXHlvFXPB72kxZUlaA\njA5Yoi9ZsTQ0WOTGL7lldAQ9/V8IvbsQWSTztax5PVhvEqXV1a26NgEUxErg\nvRJp+DWvRt6vvtSgEE4kv5/LXs1I0UTBa24/86+p7sCa2P50AxDhjNDzeQkr\nU9/sliPYiVpo4UeIEPW6PRT4osVti1CNcb3N8GZ6TA1bncQZixNCR14OpMWC\ngy+a\r\n=5c4m\r\n-----END PGP SIGNATURE-----\r\n","size":392600,"noattachment":false,"key":"/meriyah/-/meriyah-0.1.8-dev.20190516.tgz"},"main":"dist/meriyah.umd.js","husky":{"hooks":{"pre-commit":"node ./scripts/prettier.js check-changed"}},"types":"dist/meriyah.d.ts","module":"dist/meriyah.esm.js","readme":"<p align=\"center\">\n  <img width=\"260\" height=\"200\" src=\"https://github.com/meriyah/meriyah/blob/master/scripts/logo.png\">\n</p>\n\n[![NPM version](https://img.shields.io/npm/v/meriyah.svg?style=flat-square)](https://www.npmjs.com/package/meriyah)\n[![Code Quality: Javascript](https://img.shields.io/lgtm/grade/javascript/g/meriyah/meriyah.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/meriyah/meriyah/context:javascript)\n[![Total Alerts](https://img.shields.io/lgtm/alerts/g/meriyah/meriyah.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/meriyah/meriyah/alerts)\n[![CircleCI](https://circleci.com/gh/meriyah/meriyah.svg?style=svg)](https://circleci.com/gh/meriyah/meriyah)\n\nA 100% compliant, self-hosted javascript parser with high focus on both performance and stability.\n\n## Features\n\n* Conforms to the standard ECMAScript® 2020 (ECMA-262 10th Edition) language specification\n* Support TC39 proposals via option\n* Support for additional ECMAScript features for Web Browsers\n* Optionally track syntactic node locations (*WIP*)\n* Emits an ESTree-compatible abstract syntax tree.\n* No backtracking\n* Reduced memory usage\n* Very well tested (~71k unit tests with full code coverage))\n* Lightweight - ~71 KB minified\n\n## ESNext features\n\n* [BigInt](https://github.com/tc39/proposal-bigint)\n* [Decorators](https://github.com/tc39/proposal-decorators)\n* [Hashbang Grammar](https://github.com/tc39/proposal-hashbang)\n* [Private methods](https://github.com/tc39/proposal-private-methods)\n* [Static class features](https://github.com/tc39/proposal-static-class-features/)\n\n**Note:** These features need to be enabled with the `next` option.\n\n## API\n\nMeriyah generates `AST` according to [ESTree AST format](https://github.com/estree/estree), and can be used to perform [syntactic analysis](https://en.wikipedia.org/wiki/Parsing) (parsing) of a JavaScript program, and with `ES2015` and later a JavaScript program can be either [a script or a module](https://tc39.github.io/ecma262/index.html#sec-ecmascript-language-scripts-and-modules).\n\nThe `parse` method exposed by meriyah takes an optional `options` object which allows you to specify whether to parse in [`script`](https://tc39.github.io/ecma262/#sec-parse-script) mode (the default) or in [`module`](https://tc39.github.io/ecma262/#sec-parsemodule) mode.\n\n\nHere is a quick example to parse a script:\n\n```js\n\nimport { parseScript } from './meriyah';\n\nparseScript('({x: [y] = 0} = 1)');\n\n```\n\nThis will return when serialized in json:\n\n```js\n{\n    type: \"Program\",\n    sourceType: \"script\",\n    body: [\n        {\n            type: \"ExpressionStatement\",\n            expression: {\n                type: \"AssignmentExpression\",\n                left: {\n                    type: \"ObjectPattern\",\n                    properties: [\n                        {\n                            type: \"Property\",\n                            key: {\n                                type: \"Identifier\",\n                                name: \"x\"\n                            },\n                            value: {\n                                type: \"AssignmentPattern\",\n                                left: {\n                                    type: \"ArrayPattern\",\n                                    elements: [\n                                        {\n                                            \"type\": \"Identifier\",\n                                            \"name\": \"y\"\n                                        }\n                                    ]\n                                },\n                                right: {\n                                    type: \"Literal\",\n                                    value: 0\n                                }\n                            },\n                            kind: \"init\",\n                            computed: false,\n                            method: false,\n                            shorthand: false\n                        }\n                    ]\n                },\n                operator: \"=\",\n                right: {\n                    type: \"Literal\",\n                    value: 1\n                }\n            }\n        }\n    ]\n}\n```\n\n\n## Options\n\nThe second argument allows you to specify various options:\n\n| Option        | Description |\n| ----------- | ------------------------------------------------------------ |\n| `directives`      | Enable [directive prologue](https://github.com/danez/estree/blob/directive/es5.md#directive) to each literal node |\n| `globalReturn`    | Allow `return` in the global scope |\n| `impliedStrict`   | Enable strict mode (*initial enforcement*) |\n| `module`          | Allow parsing with module goal |\n| `next`            | Allow parsing with `ESNext` features  |\n| `raw`             | Attach raw property to each literal node |\n| `webcompat`       | Enable [web compability](https://tc39.github.io/ecma262/#sec-additional-ecmascript-features-for-web-browsers) |\n","browser":"dist/meriyah.umd.js","gitHead":"46d131460a12cdd1e146ec421a969f8c8b484cf8","scripts":{"lint":"cross-env tslint -p tsconfig.json -t stylish","test":"cross-env TS_NODE_PROJECT=\"test/tsconfig.json\" mocha \"test/**/*.ts\" -c -R progress -r ts-node/register -r source-map-support/register --recursive --globals expect","build":"tsc","bundle":"cross-env rimraf dist && node scripts/bundle.js","coverage":"cross-env TS_NODE_PROJECT=\"test/tsconfig.json\" nyc -n \"src/**/*.ts\" -e .ts -i ts-node/register -r text-summary -r lcov -r html npm test","prettier":"node ./scripts/prettier.js write-changed","test:watch":"npm run test -- --watch --watch-extensions ts","build:watch":"tsc -w","bundle:bench":"cross-env rimraf dist && node scripts/bundle.js bench","prettier-all":"node ./scripts/prettier.js write","test:verbose":"npm run test -- -R spec","post_coverage":"cross-env cat ./coverage/lcov.info | coveralls","prepare-nightly":"node scripts/bump-dev-version","test:watch:verbose":"npm run test:watch -- -R spec"},"typings":"dist/meriyah.d.ts","_npmUser":{"name":"meriyah","email":"klechon123@gmail.com"},"repository":{"url":"git+https://github.com/meriyah/meriyah.git","type":"git"},"_npmVersion":"6.4.1","description":"Fast and lightweight, standard-compliant javascript parser written in ECMAScript","directories":{},"jsnext:main":"dist/meriyah.esm.js","_nodeVersion":"10.12.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.0","path":"^0.12.7","husky":"^2.2.0","mocha":"^6.1.4","rimraf":"^2.6.3","rollup":"^1.11.3","tslint":"^5.16.0","ts-node":"^8.1.0","prettier":"^1.17.0","coveralls":"^3.0.3","cross-env":"^5.2.0","typescript":"^3.4.5","unexpected":"^11.4.1","@types/node":"^12.0.0","@types/mocha":"^5.2.6","tsconfig-paths":"^3.8.0","unicode-12.0.0":"^0.8.0","source-map-support":"^0.5.12","rollup-plugin-terser":"^4.0.4","test262-parser-tests":"0.0.5","rollup-plugin-replace":"^2.2.0","tslint-microsoft-contrib":"^6.1.1","rollup-plugin-typescript2":"^0.21.0"},"_npmOperationalInternal":{"tmp":"tmp/meriyah_0.1.8-dev.20190516_1557965011631_0.867097225567599","host":"s3://npm-registry-packages"},"publish_time":1557965011826,"_cnpm_publish_time":1557965011826,"dist-tags":{"dev":"4.1.5-dev.20210526","latest":"7.4.1"}}