{"id":20358265,"url":"https://github.com/node-projects/esprima-next","last_synced_at":"2025-08-20T22:32:48.724Z","repository":{"id":38376987,"uuid":"376958795","full_name":"node-projects/esprima-next","owner":"node-projects","description":"fork of esprima, with full ES2022 support","archived":false,"fork":false,"pushed_at":"2024-03-13T09:33:08.000Z","size":58128,"stargazers_count":16,"open_issues_count":4,"forks_count":1,"subscribers_count":5,"default_branch":"main","last_synced_at":"2024-12-11T06:44:58.121Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/node-projects.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE.BSD","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"jogibear9988","patreon":"jogibear9988"}},"created_at":"2021-06-14T21:18:21.000Z","updated_at":"2024-10-26T12:14:42.000Z","dependencies_parsed_at":"2024-03-13T10:55:16.716Z","dependency_job_id":null,"html_url":"https://github.com/node-projects/esprima-next","commit_stats":{"total_commits":1341,"total_committers":78,"mean_commits":"17.192307692307693","dds":"0.24235645041014164","last_synced_commit":"a002247e9cb92768ea91ef838b223012fe4fee9f"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/node-projects%2Fesprima-next","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/node-projects%2Fesprima-next/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/node-projects%2Fesprima-next/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/node-projects%2Fesprima-next/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/node-projects","download_url":"https://codeload.github.com/node-projects/esprima-next/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230462914,"owners_count":18229865,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-14T23:26:11.545Z","updated_at":"2024-12-19T16:13:16.331Z","avatar_url":"https://github.com/node-projects.png","language":"TypeScript","funding_links":["https://github.com/sponsors/jogibear9988","https://patreon.com/jogibear9988"],"categories":[],"sub_categories":[],"readme":"[![NPM version](https://img.shields.io/npm/v/esprima-next.svg)](https://www.npmjs.com/package/esprima-next)\n[![npm download](https://img.shields.io/npm/dm/esprima-next.svg)](https://www.npmjs.com/package/esprima-next)\n[![Tests](https://github.com/node-projects/esprima-next/workflows/Tests/badge.svg)](https://github.com/node-projects/esprima-next/actions)\n\nTodo: Coverage does not work atm.\n[![Coverage Status](https://img.shields.io/codecov/c/github/node-projects/esprima-next/master.svg)](https://codecov.io/github/node-projects/esprima-next)\n\n**Esprima** ([esprima.org](http://esprima.org), BSD license) is a high performance,\nstandard-compliant [ECMAScript](http://www.ecma-international.org/publications/standards/Ecma-262.htm)\nparser written in ECMAScript (also popularly known as\n[JavaScript](https://en.wikipedia.org/wiki/JavaScript)).\nEsprima is created and maintained by [Ariya Hidayat](https://twitter.com/ariyahidayat),\nwith the help of [many contributors](https://github.com/node-projects/esprima-next/contributors).\n\n### esprima-next\n\nA fork of esprima (https://github.com/jquery/esprima), cause esprima has no new releases and many not merged pull req.\nif development/maintenance at jquery will start again, we maybe remove this fork.\n\n### Changes to original Esprima:\n\n- Rename to esprima-next\n- generate a ESM build\n- update npm packages\n- disable npm run static-analysis \u0026\u0026 npm run dynamic-analysis, seem not to work after package update\n- we don't need to support node \u003c= 12\n- ES2022 Class Properties \u0026 Privates\n- Support numeric seperator and BigInt\n- import assertions\n\nfollowing Pull reqs are merged from @esprima github:\n\n- Export Esrpima Nodes type #2045\n- Fix super() in non derived class #2047\n- Support for ES2020 import.meta #2052\n- Support for ES2020 export ns from #2055\n- Fix parsing error in exponent expressions with unary left-hand sides. #2070\n- bugfix import() #2076\n- Support ES2021 Logical Assignment #2082\n- ESM release support #2081\n\n### Features\n\n- Full support for ECMAScript 2022 ([ECMA-262 13th Edition](http://www.ecma-international.org/publications/standards/Ecma-262.htm))\n- Sensible [syntax tree format](https://github.com/estree/estree/blob/master/es5.md) as standardized by [ESTree project](https://github.com/estree/estree)\n- Experimental support for [JSX](https://facebook.github.io/jsx/), a syntax extension for [React](https://facebook.github.io/react/)\n- Optional tracking of syntax node location (index-based and line-column)\n- [Heavily tested](http://esprima.org/test/ci.html) (~1600 [unit tests](https://github.com/jquery/esprima/tree/master/test/fixtures) with [full code coverage](https://codecov.io/github/jquery/esprima))\n\n### API\n\nEsprima can be used to perform [lexical analysis](https://en.wikipedia.org/wiki/Lexical_analysis) (tokenization) or [syntactic analysis](https://en.wikipedia.org/wiki/Parsing) (parsing) of a JavaScript program.\n\nA simple example on Node.js REPL:\n\n```javascript\n\u003e import { esprima } from 'esprima-next';\n\u003e var program = 'const answer = 42';\n\n\u003e esprima.tokenize(program);\n[ { type: 'Keyword', value: 'const' },\n  { type: 'Identifier', value: 'answer' },\n  { type: 'Punctuator', value: '=' },\n  { type: 'Numeric', value: '42' } ]\n\n\u003e esprima.parseScript(program);\n{ type: 'Program',\n  body:\n   [ { type: 'VariableDeclaration',\n       declarations: [Object],\n       kind: 'const' } ],\n  sourceType: 'script' }\n```\n\nFor more information, please read the [complete documentation](http://esprima.org/doc).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnode-projects%2Fesprima-next","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnode-projects%2Fesprima-next","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnode-projects%2Fesprima-next/lists"}