{"name":"meriyah","version":"1.8.6-dev.20191102","keywords":["parsing","ecmascript","javascript","parser","performance","estree","es2018","es2019","es2020","esnext","lexer","ast","lightweight"],"author":{"name":"KFlash"},"license":"ISC","_id":"meriyah@1.8.6-dev.20191102","maintainers":[{"name":"meriyah","email":"klechon123@gmail.com"}],"homepage":"https://github.com/meriyah/meriyah","bugs":{"url":"https://github.com/meriyah/meriyah/issues"},"dist":{"shasum":"a3f04c716c08255e4466da45201de6d888654880","tarball":"http://registry-npm.ywwl.com/meriyah/download/meriyah-1.8.6-dev.20191102.tgz","fileCount":72,"integrity":"sha512-uAHBE6H3MZBqNsNIQR+IPuXzh79cKvHCzpQNdkoqOAO+mSi/3QUgmQU68Kr0vbqLth9wGcysBqrbjvO9VOeP5A==","signatures":[{"sig":"MEQCIGPXOzI4amOG4Zimo8VKCAkeHSw+koZzuw9dEjczvFb+AiAFNF6DEztmZzp2+z3vhmRe/ONCvp8G1T/i7fzDkHMdxA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":2862040,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdvMlCCRA9TVsSAnZWagAAT6sP/in8/5lxCeaPFiqG1wew\nW9xi/H3LwJXQHX6pHx+TWzeSZ4Mk7LktC4D6GcOGSsND00sn8KuxdznZeLCj\n7xq1gUqpgxh6hl8kXRp3q/H9lvZWmVMC9OW1SkcmIclGGhvwCiBO+1JGjsEA\nculji5vsp95C+NOCo+N7spcblr+TEDI6Ms7mOJVjKnQkMg3H06xBRLpoK+5I\nz9euALDLZYE0XacS6E5S3L72ivv7i+uH5N8Cmxyij9Ndexa/8p0vsJ5c9Yra\notAENRaEjUq571We11bPY6jHganY6yOmf0kBaCwZTH/Ic+6yRAcMY21Tr3MC\nr3oc3ugFrnAa1sAKbRGhFzm8+kl7wpvUgvR1b3JabQl5K/tffSF6jqCVsAGq\nQ9MHY0Qaimpiifs/uhO3I4nw7/nPsrlrh5stMDyfBDZIe8Erxg2DMYpAmUQZ\nqzGtQiyXu2xovrZnXt0wbOZp562VA1RQxj8Na25+fdS0E4RlUgP7yeVYwvNA\nawAsfgaLHAImB8g98z24G3O6QJT747XsHtkUwChiIRwUcyXAfNm11WvJ1QUL\nZeIDY4Jnv18qnXj7IkggRHmYz9U6p1/BYOIp/e6U0qECKWfH3z/H06VA6WcH\na86xSDZJ1gN60i991gs1Iql5zMMl7DM3V6KKRfYQuBcN/mhYKGVNzLDHdgOx\nWU/m\r\n=qIcz\r\n-----END PGP SIGNATURE-----\r\n","size":498216,"noattachment":false,"key":"/meriyah/-/meriyah-1.8.6-dev.20191102.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":"<h1 align=\"center\">Meriyah</h1>\n\n<p align=\"center\"> 100% compliant, self-hosted javascript parser with high focus on both performance and stability. Stable and already used in production.</p>\n\n<p align=\"center\">\n    <a href=\"https://www.npmjs.com/package/meriyah\"><img src=\"https://img.shields.io/npm/v/meriyah.svg?style=flat-square\" alt=\"Meriyah NPM\"/></a>\n    <a href=\"https://lgtm.com/projects/g/meriyah/meriyah/context:javascript\"><img src=\"https://img.shields.io/lgtm/grade/javascript/g/meriyah/meriyah.svg?logo=lgtm&logoWidth=18\" alt=\"GitHub license\" /></a>\n    <a href=\"https://lgtm.com/projects/g/meriyah/meriyah/alerts\"><img src=\"https://img.shields.io/lgtm/alerts/g/meriyah/meriyah.svg?logo=lgtm&logoWidth=18\" alt=\"Total alerts\" /></a>\n    <a href=\"https://circleci.com/gh/meriyah/meriyah\"><img src=\"https://circleci.com/gh/meriyah/meriyah.svg?style=svg\" alt=\"Circle\" /></a>\n    <a href=\"https://github.com/meriyah/meriyah/blob/master/LICENSE.md\"><img src=\"https://img.shields.io/github/license/meriyah/meriyah.svg\" alt=\"License\" /></a>\n\n</p>\n\n<br>\n\n## [Demo](https://meriyah.github.io/meriyah)\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* JSX support via option\n* Optionally track syntactic node locations\n* Emits an ESTree-compatible abstract syntax tree.\n* No backtracking\n* Low memory usage\n* Very well tested (~99 000 unit tests with full code coverage)\n* Lightweight - ~90 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* [import.meta](https://github.com/tc39/proposal-import-meta)\n* [Nullish coalescing Operator](https://github.com/tc39/proposal-nullish-coalescing)\n* [Numeric separators](https://github.com/tc39/proposal-numeric-separator)\n* [Optional Chaining](https://github.com/tc39/proposal-optional-chaining)\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## Installation\n\n```sh\nnpm install meriyah --save-dev\n```\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\nThis is the available options:\n\n```js\n{\n  // The flag to allow module code\n  module: false;\n\n  // The flag to enable stage 3 support (ESNext)\n  next: false;\n\n  // The flag to enable start and end offsets to each node\n  ranges: false;\n\n  // Enable web compability\n  webcompat: false;\n\n  // The flag to enable line/column location information to each node\n  loc: false;\n\n  // The flag to attach raw property to each literal and identifier node\n  raw: false;\n\n  // Enabled directives\n  directives: false;\n\n  // The flag to allow return in the global scope\n  globalReturn: false;\n\n  // The flag to enable implied strict mode\n  impliedStrict: false;\n\n  // Allows comment extraction. Accepts either a function or array\n  onComment: []\n\n  // Allows token extraction. Accepts either a function or array\n  onToken: []\n\n  // Enable non-standard parenthesized expression node\n  preserveParens: false;\n\n  // Enable lexical binding and scope tracking\n  lexical: false;\n\n  // Adds a source attribute in every node’s loc object when the locations option is `true`\n  source: false;\n\n  // Distinguish Identifier from IdentifierPattern\n  identifierPattern: false;\n\n   // Enable React JSX parsing\n  jsx: false\n\n  // Allow edge cases that deviate from the spec\n  specDeviation: false\n}\n```\n\nExample usage:\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","browser":"dist/meriyah.umd.js","engines":{"node":">=6.0.0"},"gitHead":"169c87d87decabe47ec57d5963c0b2515ad1d839","scripts":{"lint":"eslint \"{src,test,scripts}/**/*.{ts,js}\"","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","glob":"^7.1.4","path":"^0.12.7","chalk":"^2.4.2","husky":"^3.0.5","mocha":"^6.2.2","eslint":"^6.5.1","rimraf":"^3.0.0","rollup":"^1.25.0","tslint":"^5.20.0","ts-node":"^8.4.1","prettier":"^1.18.2","coveralls":"^3.0.6","cross-env":"^5.2.0","typescript":"^3.6.4","unexpected":"^11.8.0","@types/node":"^12.7.5","@types/mocha":"^5.2.7","tsconfig-paths":"^3.9.0","unicode-12.0.0":"^0.8.0","eslint-plugin-node":"^10.0.0","source-map-support":"^0.5.13","eslint-plugin-import":"^2.18.2","rollup-plugin-terser":"^5.1.2","test262-parser-tests":"0.0.5","rollup-plugin-replace":"^2.2.0","tslint-microsoft-contrib":"^6.2.0","@typescript-eslint/parser":"^2.4.0","rollup-plugin-typescript2":"^0.24.2","@typescript-eslint/eslint-plugin":"^2.4.0"},"_npmOperationalInternal":{"tmp":"tmp/meriyah_1.8.6-dev.20191102_1572653377924_0.21359566956363163","host":"s3://npm-registry-packages"},"publish_time":1572653378063,"_cnpm_publish_time":1572653378063,"dist-tags":{"dev":"4.1.5-dev.20210526","latest":"7.4.1"}}