{"_id":"@ast-grep/lang-tsx","_rev":"6-2bb53e1e45e8f72ae6446e290f0abf90","name":"@ast-grep/lang-tsx","dist-tags":{"latest":"0.0.7"},"versions":{"0.0.2":{"name":"@ast-grep/lang-tsx","version":"0.0.2","keywords":["ast-grep","ast-grep-lang"],"author":"","license":"ISC","_id":"@ast-grep/lang-tsx@0.0.2","maintainers":[{"name":"herringtondarkholme","email":"nonamesheep@outlook.com"}],"dist":{"shasum":"f8064c0ca1e24b44c05e2a22306056c143331667","tarball":"https://registry.npmjs.org/@ast-grep/lang-tsx/-/lang-tsx-0.0.2.tgz","fileCount":17,"integrity":"sha512-txZ9rw60u4QpNlhI/IVAg4O4dHAA3JDJxivYeSJMYofBju69NfZOBvWTa43EhFsMmjS5AECctz5lt1PA1RldKw==","signatures":[{"sig":"MEUCIC05fFuJMzBqWAU+3pFlip1GBSnY1/Mp+9bpIejZx7IZAiEArwp2yyf2RmU9g8CXVUVL0VKP9i7duLdkMFXI1DuDO/s=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":13719789},"main":"index.js","_from":"file:ast-grep-lang-tsx-0.0.2.tgz","types":"./index.d.ts","scripts":{"test":"node nursery.js test","build":"tree-sitter build -o parser.so ./node_modules/tree-sitter-typescript/tsx","source":"node nursery.js source","postinstall":"node postinstall.js"},"_npmUser":{"name":"herringtondarkholme","email":"nonamesheep@outlook.com"},"_resolved":"/tmp/248249473a06ec66aaf6542262ca80fc/ast-grep-lang-tsx-0.0.2.tgz","_integrity":"sha512-txZ9rw60u4QpNlhI/IVAg4O4dHAA3JDJxivYeSJMYofBju69NfZOBvWTa43EhFsMmjS5AECctz5lt1PA1RldKw==","_npmVersion":"10.8.2","description":"## Installation","directories":{},"_nodeVersion":"20.19.0","dependencies":{"@ast-grep/setup-lang":"0.0.3"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"tree-sitter-cli":"0.24.6","@ast-grep/nursery":"0.0.3","tree-sitter-typescript":"^0.23.2"},"peerDependencies":{"tree-sitter-cli":"0.24.6"},"peerDependenciesMeta":{"tree-sitter-cli":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/lang-tsx_0.0.2_1744572602311_0.13304866425190598","host":"s3://npm-registry-packages-npm-production"}},"0.0.3":{"name":"@ast-grep/lang-tsx","version":"0.0.3","keywords":["ast-grep","ast-grep-lang"],"author":"","license":"ISC","_id":"@ast-grep/lang-tsx@0.0.3","maintainers":[{"name":"herringtondarkholme","email":"nonamesheep@outlook.com"}],"dist":{"shasum":"49818f011b262ee6a6228da07e485a55bf34d7ef","tarball":"https://registry.npmjs.org/@ast-grep/lang-tsx/-/lang-tsx-0.0.3.tgz","fileCount":17,"integrity":"sha512-E/MnZxMYm/uyD2mYyOC6yYWQV+hN3lxGZUKn1C9Y5pzJkzuamYHCkcGz9RhVqH2l76M6bSOf6wd9wclELe6CkA==","signatures":[{"sig":"MEUCIQDZt0n4C9pyv2Z++ffYExEjX8nZxgfPZSyGmTwbbOyw5gIgbFu8BmCnQrj4j1cqdXRypr29WusiamC7ypeba8DgMEo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":13719789},"main":"index.js","_from":"file:ast-grep-lang-tsx-0.0.3.tgz","types":"./index.d.ts","scripts":{"test":"node nursery.js test","build":"tree-sitter build -o parser.so ./node_modules/tree-sitter-typescript/tsx","source":"node nursery.js source","postinstall":"node postinstall.js"},"_npmUser":{"name":"herringtondarkholme","email":"nonamesheep@outlook.com"},"_resolved":"/tmp/8bd4eb1d46b22935a7763bd12ff7ea55/ast-grep-lang-tsx-0.0.3.tgz","_integrity":"sha512-E/MnZxMYm/uyD2mYyOC6yYWQV+hN3lxGZUKn1C9Y5pzJkzuamYHCkcGz9RhVqH2l76M6bSOf6wd9wclELe6CkA==","_npmVersion":"10.8.2","description":"## Installation","directories":{},"_nodeVersion":"20.19.1","dependencies":{"@ast-grep/setup-lang":"0.0.3"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"tree-sitter-cli":"0.25.6","@ast-grep/nursery":"0.0.5","tree-sitter-typescript":"^0.23.2"},"peerDependencies":{"tree-sitter-cli":"0.25.6"},"peerDependenciesMeta":{"tree-sitter-cli":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/lang-tsx_0.0.3_1749434108982_0.25451019690340515","host":"s3://npm-registry-packages-npm-production"}},"0.0.4":{"name":"@ast-grep/lang-tsx","version":"0.0.4","keywords":["ast-grep","ast-grep-lang"],"author":"","license":"ISC","_id":"@ast-grep/lang-tsx@0.0.4","maintainers":[{"name":"herringtondarkholme","email":"nonamesheep@outlook.com"}],"dist":{"shasum":"ba91b953467e182de6abf97f4d196b07bcb1ecd6","tarball":"https://registry.npmjs.org/@ast-grep/lang-tsx/-/lang-tsx-0.0.4.tgz","fileCount":17,"integrity":"sha512-1Aduy3MTn0NGBRWdpTUbVdMHswtSQavBsl2RhrlXvVYEOoMTC0vdbdnZH0tM+3am4qEI3LFECNd3z5QBKG610g==","signatures":[{"sig":"MEYCIQD4JV4FOGTK10rQcxsBFUEB0/iZk8WSCTL99nSCFGXafAIhANZ2pp687qJJjGfh8g29WxXj9X669u4om0ahcmGCZmTv","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":13720240},"main":"index.js","_from":"file:ast-grep-lang-tsx-0.0.4.tgz","types":"./index.d.ts","scripts":{"test":"node nursery.js test","build":"tree-sitter build -o parser.so ./node_modules/tree-sitter-typescript/tsx","source":"node nursery.js source","postinstall":"node postinstall.js"},"_npmUser":{"name":"herringtondarkholme","email":"nonamesheep@outlook.com"},"_resolved":"/tmp/9348eb7c477d272c49efe3e482213631/ast-grep-lang-tsx-0.0.4.tgz","_integrity":"sha512-1Aduy3MTn0NGBRWdpTUbVdMHswtSQavBsl2RhrlXvVYEOoMTC0vdbdnZH0tM+3am4qEI3LFECNd3z5QBKG610g==","_npmVersion":"10.8.2","description":"## Installation","directories":{},"_nodeVersion":"20.19.4","dependencies":{"@ast-grep/setup-lang":"0.0.4"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"tree-sitter-cli":"0.25.8","@ast-grep/nursery":"0.0.7","tree-sitter-typescript":"^0.23.2"},"peerDependencies":{"tree-sitter-cli":"0.25.8"},"peerDependenciesMeta":{"tree-sitter-cli":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/lang-tsx_0.0.4_1755141474106_0.06621816890692389","host":"s3://npm-registry-packages-npm-production"}},"0.0.5":{"name":"@ast-grep/lang-tsx","version":"0.0.5","keywords":["ast-grep","ast-grep-lang"],"author":"","license":"ISC","_id":"@ast-grep/lang-tsx@0.0.5","maintainers":[{"name":"herringtondarkholme","email":"nonamesheep@outlook.com"}],"dist":{"shasum":"230109cbde26bd9bab4404488dad36883d56dba1","tarball":"https://registry.npmjs.org/@ast-grep/lang-tsx/-/lang-tsx-0.0.5.tgz","fileCount":17,"integrity":"sha512-YWYdkcUCX6NFd8TMGXF+qnQsLiUs8JhxMXUnAtIZ3Qi8ILXoCuguTBUvNC4KAsUJVh4iacveVuwpc9Yzqw8S3w==","signatures":[{"sig":"MEUCIQD5Vucp5+fzuXqU1j9azvj0OHa8BoRU+rSGxvZ7TFwKzgIgZoh/tmhoCT04+TPD/wlfaK1JkRAnoCErgQYn4XzCQFs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":13720272},"main":"index.js","_from":"file:ast-grep-lang-tsx-0.0.5.tgz","types":"./index.d.ts","scripts":{"test":"node nursery.js test","build":"tree-sitter build -o parser.so ./node_modules/tree-sitter-typescript/tsx","source":"node nursery.js source","postinstall":"node postinstall.js"},"_npmUser":{"name":"herringtondarkholme","email":"nonamesheep@outlook.com"},"_resolved":"/tmp/7f766704c59947cb6961d5865daabf57/ast-grep-lang-tsx-0.0.5.tgz","_integrity":"sha512-YWYdkcUCX6NFd8TMGXF+qnQsLiUs8JhxMXUnAtIZ3Qi8ILXoCuguTBUvNC4KAsUJVh4iacveVuwpc9Yzqw8S3w==","_npmVersion":"10.8.2","description":"## Installation","directories":{},"_nodeVersion":"20.19.6","dependencies":{"@ast-grep/setup-lang":"0.0.5"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"tree-sitter-cli":"0.25.8","@ast-grep/nursery":"0.0.8","tree-sitter-typescript":"^0.23.2"},"peerDependencies":{"tree-sitter-cli":"0.25.8"},"peerDependenciesMeta":{"tree-sitter-cli":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/lang-tsx_0.0.5_1765433530730_0.17711469972408","host":"s3://npm-registry-packages-npm-production"}},"0.0.6":{"name":"@ast-grep/lang-tsx","version":"0.0.6","keywords":["ast-grep","ast-grep-lang"],"author":"","license":"ISC","_id":"@ast-grep/lang-tsx@0.0.6","maintainers":[{"name":"herringtondarkholme","email":"nonamesheep@outlook.com"}],"dist":{"shasum":"1b86daebe7c6494d589589c71b3998b9f07b3cee","tarball":"https://registry.npmjs.org/@ast-grep/lang-tsx/-/lang-tsx-0.0.6.tgz","fileCount":18,"integrity":"sha512-1cgoCcKvx0JYJhP6/rTwk4pYWwnJ9PnvbS83H9849lCDfQJ/9u1t/YeLoNPF47deWvTsVjN5WpJty47Nt//VfQ==","signatures":[{"sig":"MEUCIQD5CMqGf66Ijbl+mdGV2CmEk9bFWOhDd2pyG81NK1er9AIgXzNzDHkdJU46lyvYrnQ8+yxYSO7jS1KPNAVsgkcMfXk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15235312},"main":"index.js","_from":"file:ast-grep-lang-tsx-0.0.6.tgz","types":"./index.d.ts","scripts":{"test":"node nursery.js test","build":"tree-sitter build -o parser.so ./node_modules/tree-sitter-typescript/tsx","source":"node nursery.js source","postinstall":"node postinstall.js"},"_npmUser":{"name":"herringtondarkholme","email":"nonamesheep@outlook.com"},"_resolved":"/tmp/898530b75f971b5690a4241055b36304/ast-grep-lang-tsx-0.0.6.tgz","_integrity":"sha512-1cgoCcKvx0JYJhP6/rTwk4pYWwnJ9PnvbS83H9849lCDfQJ/9u1t/YeLoNPF47deWvTsVjN5WpJty47Nt//VfQ==","_npmVersion":"10.8.2","description":"## Installation","directories":{},"_nodeVersion":"20.19.6","dependencies":{"@ast-grep/setup-lang":"0.0.6"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"tree-sitter-cli":"0.25.8","@ast-grep/nursery":"0.0.9","tree-sitter-typescript":"^0.23.2"},"peerDependencies":{"tree-sitter-cli":"0.25.8"},"peerDependenciesMeta":{"tree-sitter-cli":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/lang-tsx_0.0.6_1768081614856_0.9611653027128071","host":"s3://npm-registry-packages-npm-production"}},"0.0.7":{"name":"@ast-grep/lang-tsx","version":"0.0.7","description":"## Installation","main":"index.js","keywords":["ast-grep","ast-grep-lang"],"author":"","license":"ISC","dependencies":{"@ast-grep/setup-lang":"0.0.6"},"peerDependencies":{"tree-sitter-cli":"0.25.8"},"peerDependenciesMeta":{"tree-sitter-cli":{"optional":true}},"devDependencies":{"@ast-grep/nursery":"0.0.9","tree-sitter-cli":"0.25.8","tree-sitter-typescript":"^0.23.2"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"scripts":{"build":"tree-sitter build -o parser.so ./node_modules/tree-sitter-typescript/tsx","source":"node nursery.js source","postinstall":"node postinstall.js","test":"node nursery.js test"},"_id":"@ast-grep/lang-tsx@0.0.7","types":"./index.d.ts","_integrity":"sha512-wH90LZakyFj0wDx4CqcMC2zyxEheY99wgcKraL5WiKx5Ro/+59IbvUaHZlEd8061rE9XlcZokMQ0sNuW9Uh8+g==","_resolved":"/tmp/3ca003c2e7c4ade86403fc9fd1926cf7/ast-grep-lang-tsx-0.0.7.tgz","_from":"file:ast-grep-lang-tsx-0.0.7.tgz","_nodeVersion":"20.20.1","_npmVersion":"10.8.2","dist":{"integrity":"sha512-wH90LZakyFj0wDx4CqcMC2zyxEheY99wgcKraL5WiKx5Ro/+59IbvUaHZlEd8061rE9XlcZokMQ0sNuW9Uh8+g==","shasum":"c964d8d776f18b5d7da14b43723830cc58e25d66","tarball":"https://registry.npmjs.org/@ast-grep/lang-tsx/-/lang-tsx-0.0.7.tgz","fileCount":19,"unpackedSize":16695593,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIEn4WCP/SOByVBTZzLYQkZOEdx1kK6VzLQOyb7uCcWKMAiA2WXsYwgi45gFBdBe5qOXfeVTFM2wS0oAFO4NzM2js1w=="}]},"_npmUser":{"name":"herringtondarkholme","email":"nonamesheep@outlook.com"},"directories":{},"maintainers":[{"name":"herringtondarkholme","email":"nonamesheep@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/lang-tsx_0.0.7_1773542507853_0.4560049585891901"},"_hasShrinkwrap":false}},"time":{"created":"2025-04-13T19:30:02.239Z","modified":"2026-03-15T02:41:48.245Z","0.0.2":"2025-04-13T19:30:02.581Z","0.0.3":"2025-06-09T01:55:09.245Z","0.0.4":"2025-08-14T03:17:54.361Z","0.0.5":"2025-12-11T06:12:10.920Z","0.0.6":"2026-01-10T21:46:55.053Z","0.0.7":"2026-03-15T02:41:48.110Z"},"license":"ISC","keywords":["ast-grep","ast-grep-lang"],"description":"## Installation","maintainers":[{"name":"herringtondarkholme","email":"nonamesheep@outlook.com"}],"readme":"# ast-grep napi language for tsx\n\n## Installation\n\nIn a pnpm project, run:\n\n```bash\npnpm install @ast-grep/lang-tsx\npnpm install @ast-grep/napi\n# install the tree-sitter-cli if no prebuild is available\npnpm install tree-sitter-cli --save-dev\n```\n\n## Usage\n\n```js\nimport tsx from '@ast-grep/lang-tsx'\nimport { registerDynamicLanguage, parse } from '@ast-grep/napi'\n\nregisterDynamicLanguage({ tsx })\n\nconst sg = parse('tsx', `your code`)\nsg.root().kind()\n```\n","readmeFilename":"README.md"}