{"name":"meriyah","version":"0.3.0-dev.20190612","keywords":["parsing","ecmascript","typescript","javascript","parser","performance","estree","es2018","es2019","es2020","esnext","ast","lightweight"],"author":{"name":"KFlash"},"license":"ISC","_id":"meriyah@0.3.0-dev.20190612","maintainers":[{"name":"meriyah","email":"klechon123@gmail.com"}],"homepage":"https://github.com/meriyah/meriyah","bugs":{"url":"https://github.com/meriyah/meriyah/issues"},"dist":{"shasum":"a97840a29c9b621d89cc93daef9493a67fed7d1f","tarball":"http://registry-npm.ywwl.com/meriyah/download/meriyah-0.3.0-dev.20190612.tgz","fileCount":70,"integrity":"sha512-Wmw8YjfMJ3HjCsZOkDeWSuELDx4SpTk9b/LOwCc3dXC/jSVt4RrTCqGDJW7q2Ij2T9qt/b7XTCZwbHqwRfNR4Q==","signatures":[{"sig":"MEUCIQDl8S5vv9mrJk8ydTkhVeXLAGZFlXQ0ZCUIh/lA0qkBmwIgfYfnRDb53fGIM5R2XbF12IkDNi1rliswarvsw/bF8uY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":2280431,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdAEFwCRA9TVsSAnZWagAAlPoP/0rlsEmbPpi/fhh23UQ4\nSn2mtndTkeJTFQeIl/ppE4SPj3R+bCMmjrrSeVg+sH5qkn6wDOjzXzoAup5Q\nFL2E3jYHtlBlRY7fnwer+cnHoa/Ix6keAboCxZS5fLxLfIcv69SmPryAZ8M0\nx2V6HkstZgWZ2ukE3xQDg2sTY9uqAd6UmkxYj3k8ENuAV3O4/QqReS43D8cK\nFHqVJMjc49pKpMe1H3GzDXihIBe7qhRRvezle9D5n6uy5vl1mxcUcpcCG2+/\nYdolHC4fdwXU3oiBUoAMzmOD/2IC24yI6mbDXTsXmVM4N7x7QYQTrvzuyq6c\nhwR4vL2QjSdXt3cHk7HHN24RxmGkaTsj1ajJdUggL0ym0oNb+G3Mdr2Zfjkq\nHeniGx26+V0GwmyKSrSFDyEvUXEv7fI+I7JOm1cDUZ5AxmNnnXP3/3Ml1bHR\nWIsuoIEjC+LoefiJCCuc80vf5rWDcY3X8qZoU0e+sxIAkR3nOj2rdl8XYUpl\nt2oLaOII3Aw8f4BmPuMFEePPhLejPJ8Q4rMRT8hyMxhJRd/3dgmNo1tWm7yE\nrohtRTwXgRQPNlxBfl+FN4PHW15AyDtnURXBXCpvA4idfXK9lOe8kDLzhQNU\nPmhiLlu8i4pI2yD58XHOE7/sclbEJ8j46wx/xa+zz6KuByuTnGzil1P5icG+\ndNAU\r\n=nPUu\r\n-----END PGP SIGNATURE-----\r\n","size":416099,"noattachment":false,"key":"/meriyah/-/meriyah-0.3.0-dev.20190612.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<h4 align=\"center\">A 100% compliant, self-hosted javascript parser with high focus on both performance and stability</h4>\n\n<p align=\"center\">\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</p>\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\n* Emits an ESTree-compatible abstract syntax tree.\n* No backtracking\n* Reduced memory usage\n* Very well tested (~75 000 unit tests with full code coverage))\n* Lightweight - ~74 KB minified\n\n## ESNext features\n\n* [Decorators](https://github.com/tc39/proposal-decorators)\n* [Class Public Instance Fields & Private Instance Fields](https://github.com/tc39/proposal-class-fields)\n* [Hashbang Grammar](https://github.com/tc39/proposal-hashbang)\n* [Private methods](https://github.com/tc39/proposal-private-methods)\n* [Static class fields and private static methods](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| `parenthesizedExpr`\t| Enable non-standard parenthesized expression node |\n| `raw`             | Attach raw property to each literal node |\n| `ranges`          | Append start and end offsets to each 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":"031524e17fec81904dc8cb627169f26f8d564e5b","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":"A 100% compliant, self-hosted javascript parser with high focus on both performance and stability","directories":{},"jsnext:main":"dist/meriyah.esm.js","_nodeVersion":"10.12.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"^14.1.1","path":"^0.12.7","husky":"^2.4.0","mocha":"^6.1.4","rimraf":"^2.6.3","rollup":"^1.14.4","tslint":"^5.17.0","ts-node":"^8.2.0","prettier":"^1.18.2","coveralls":"^3.0.4","cross-env":"^5.2.0","typescript":"^3.5.1","unexpected":"^11.6.0","@types/node":"^12.0.7","@types/mocha":"^5.2.7","tsconfig-paths":"^3.8.0","unicode-12.0.0":"^0.8.0","source-map-support":"^0.5.12","rollup-plugin-terser":"^5.0.0","test262-parser-tests":"0.0.5","rollup-plugin-replace":"^2.2.0","tslint-microsoft-contrib":"^6.2.0","rollup-plugin-typescript2":"^0.21.1"},"_npmOperationalInternal":{"tmp":"tmp/meriyah_0.3.0-dev.20190612_1560297839755_0.7758543454307552","host":"s3://npm-registry-packages"},"publish_time":1560297839980,"_cnpm_publish_time":1560297839980,"dist-tags":{"dev":"4.1.5-dev.20210526","latest":"7.4.1"}}