{"id":13509678,"url":"https://github.com/jquery/esprima","last_synced_at":"2025-05-13T18:04:54.097Z","repository":{"id":1906388,"uuid":"2833537","full_name":"jquery/esprima","owner":"jquery","description":"ECMAScript parsing infrastructure for multipurpose analysis","archived":false,"fork":false,"pushed_at":"2023-04-16T01:17:08.000Z","size":60059,"stargazers_count":7094,"open_issues_count":148,"forks_count":778,"subscribers_count":146,"default_branch":"main","last_synced_at":"2025-05-06T17:13:42.267Z","etag":null,"topics":["ast","ecmascript","esprima","javascript","parser","parsing"],"latest_commit_sha":null,"homepage":"http://esprima.org","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/jquery.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.BSD","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2011-11-23T05:36:43.000Z","updated_at":"2025-05-06T11:20:47.000Z","dependencies_parsed_at":"2023-07-06T07:29:51.244Z","dependency_job_id":null,"html_url":"https://github.com/jquery/esprima","commit_stats":{"total_commits":1232,"total_committers":73,"mean_commits":"16.876712328767123","dds":"0.17532467532467533","last_synced_commit":"512cd66c6ffd6083144b0150f09670e426252776"},"previous_names":[],"tags_count":32,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jquery%2Fesprima","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jquery%2Fesprima/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jquery%2Fesprima/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jquery%2Fesprima/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jquery","download_url":"https://codeload.github.com/jquery/esprima/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252810266,"owners_count":21807759,"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":["ast","ecmascript","esprima","javascript","parser","parsing"],"created_at":"2024-08-01T02:01:11.368Z","updated_at":"2025-05-13T18:04:54.074Z","avatar_url":"https://github.com/jquery.png","language":"TypeScript","readme":"[![NPM version](https://img.shields.io/npm/v/esprima.svg)](https://www.npmjs.com/package/esprima)\n[![npm download](https://img.shields.io/npm/dm/esprima.svg)](https://www.npmjs.com/package/esprima)\n[![Tests](https://github.com/jquery/esprima/workflows/Tests/badge.svg)](https://github.com/jquery/esprima/actions)\n[![Coverage Status](https://img.shields.io/codecov/c/github/jquery/esprima/master.svg)](https://codecov.io/github/jquery/esprima)\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/jquery/esprima/contributors).\n\n### Features\n\n- Full support for ECMAScript 2019 ([ECMA-262 10th 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 var esprima = require('esprima');\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","funding_links":[],"categories":["JavaScript","TypeScript","Repository","Framework or Library","Utilities","JavaScript / ECMAScript"],"sub_categories":["AST","Parser","React Components","Follow me","Parsers"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjquery%2Fesprima","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjquery%2Fesprima","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjquery%2Fesprima/lists"}