{"_id":"@ast-grep/lang-typescript","_rev":"6-f4bcbd7358ed4dbb1a13a46f19fb1fc6","name":"@ast-grep/lang-typescript","dist-tags":{"latest":"0.0.7"},"versions":{"0.0.2":{"name":"@ast-grep/lang-typescript","version":"0.0.2","keywords":["ast-grep","ast-grep-lang"],"author":"","license":"ISC","_id":"@ast-grep/lang-typescript@0.0.2","maintainers":[{"name":"herringtondarkholme","email":"nonamesheep@outlook.com"}],"dist":{"shasum":"b81b75025b28fa3e5b122df2fe2252ad6bae4c49","tarball":"https://registry.npmjs.org/@ast-grep/lang-typescript/-/lang-typescript-0.0.2.tgz","fileCount":17,"integrity":"sha512-zLRqiSP/3Tc+r5OEopGZqetgMCMOFssLKuIRYE5zHXe8n6aRk8wMOXCHsuhY2g1YmH58rv9dloSZchpzIBriCQ==","signatures":[{"sig":"MEYCIQC2j/fAXHz/LAxQfMaerRGaOBXp1WxEs6elYRxgrDOywwIhAJ3w55dXuAQOvrylyVdLXhU9ibuDQVbGVKg5ypxxIAlP","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":13571661},"main":"index.js","_from":"file:ast-grep-lang-typescript-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/typescript","source":"node nursery.js source","postinstall":"node postinstall.js"},"_npmUser":{"name":"herringtondarkholme","email":"nonamesheep@outlook.com"},"_resolved":"/tmp/c89186104210fb6f2fc535f65f7335db/ast-grep-lang-typescript-0.0.2.tgz","_integrity":"sha512-zLRqiSP/3Tc+r5OEopGZqetgMCMOFssLKuIRYE5zHXe8n6aRk8wMOXCHsuhY2g1YmH58rv9dloSZchpzIBriCQ==","_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-typescript_0.0.2_1744572588957_0.6272565073999912","host":"s3://npm-registry-packages-npm-production"}},"0.0.3":{"name":"@ast-grep/lang-typescript","version":"0.0.3","keywords":["ast-grep","ast-grep-lang"],"author":"","license":"ISC","_id":"@ast-grep/lang-typescript@0.0.3","maintainers":[{"name":"herringtondarkholme","email":"nonamesheep@outlook.com"}],"dist":{"shasum":"6d58daa6deccefd222f2c29928d4b5e249bef7ba","tarball":"https://registry.npmjs.org/@ast-grep/lang-typescript/-/lang-typescript-0.0.3.tgz","fileCount":17,"integrity":"sha512-shguHGyN4IDVi+iCkhU94iJA7R4QgTiP1nWpc1dntTw6jbyOH++2S9ibDNiHy9uyHkvML58etoPQRaQPk6Bc9Q==","signatures":[{"sig":"MEUCIFtyIz3xKUBVgjBZHyvFAQIVG+NOQajGFqJDTALf5g0RAiEAlr02Ze7hoHdPpq/mfyxArCjq043RZ+be/lWczSApmcQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":13571661},"main":"index.js","_from":"file:ast-grep-lang-typescript-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/typescript","source":"node nursery.js source","postinstall":"node postinstall.js"},"_npmUser":{"name":"herringtondarkholme","email":"nonamesheep@outlook.com"},"_resolved":"/tmp/0cf859162cb2ddc0ec0d276e76e73020/ast-grep-lang-typescript-0.0.3.tgz","_integrity":"sha512-shguHGyN4IDVi+iCkhU94iJA7R4QgTiP1nWpc1dntTw6jbyOH++2S9ibDNiHy9uyHkvML58etoPQRaQPk6Bc9Q==","_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-typescript_0.0.3_1749434090025_0.3534759199217141","host":"s3://npm-registry-packages-npm-production"}},"0.0.4":{"name":"@ast-grep/lang-typescript","version":"0.0.4","keywords":["ast-grep","ast-grep-lang"],"author":"","license":"ISC","_id":"@ast-grep/lang-typescript@0.0.4","maintainers":[{"name":"herringtondarkholme","email":"nonamesheep@outlook.com"}],"dist":{"shasum":"0199eaab0b89e7719b82c0705ab3a4a4f6047860","tarball":"https://registry.npmjs.org/@ast-grep/lang-typescript/-/lang-typescript-0.0.4.tgz","fileCount":17,"integrity":"sha512-668IL2nLZKcI5dZEzAiL0r75IkpxfwyuhwR0V7LyMAnm+WKiszsFni2mR45CIhzWs9524jbCBFpvqMjx2m2rfA==","signatures":[{"sig":"MEYCIQC17dsvYOaOGkLqnNsqsOg/uFAPZYD0/JzpTwkI74pyOQIhAIoaqxZqaDhc32lFmWGkA+575tUvhUz23VpHk9kRQINj","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":13572112},"main":"index.js","_from":"file:ast-grep-lang-typescript-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/typescript","source":"node nursery.js source","postinstall":"node postinstall.js"},"_npmUser":{"name":"herringtondarkholme","email":"nonamesheep@outlook.com"},"_resolved":"/tmp/f008765a2b11e8351c28e812a2d8aaef/ast-grep-lang-typescript-0.0.4.tgz","_integrity":"sha512-668IL2nLZKcI5dZEzAiL0r75IkpxfwyuhwR0V7LyMAnm+WKiszsFni2mR45CIhzWs9524jbCBFpvqMjx2m2rfA==","_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-typescript_0.0.4_1755141472049_0.7091187606688232","host":"s3://npm-registry-packages-npm-production"}},"0.0.5":{"name":"@ast-grep/lang-typescript","version":"0.0.5","keywords":["ast-grep","ast-grep-lang"],"author":"","license":"ISC","_id":"@ast-grep/lang-typescript@0.0.5","maintainers":[{"name":"herringtondarkholme","email":"nonamesheep@outlook.com"}],"dist":{"shasum":"b6bd87a56324bb1ce7536f0f3745e80d6805841b","tarball":"https://registry.npmjs.org/@ast-grep/lang-typescript/-/lang-typescript-0.0.5.tgz","fileCount":17,"integrity":"sha512-KIUUPEl2cLLbArfyw0oBwm8mxSwZDzxekJmqu5eVM6VzzOzuEeSw0cYcwevEeZtmL6iq5SG9iDD9t3eEb3gfWQ==","signatures":[{"sig":"MEUCIQDiJUDEgpacDvTMT4RmtdYvXssHHW9DyDolC8vR1OQRXQIgMLoBxLbgFQnKBh1a+zBObjNFCjl/Q5CCJoSgoqH3Yso=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":13572160},"main":"index.js","_from":"file:ast-grep-lang-typescript-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/typescript","source":"node nursery.js source","postinstall":"node postinstall.js"},"_npmUser":{"name":"herringtondarkholme","email":"nonamesheep@outlook.com"},"_resolved":"/tmp/7042ca5717afc8ea6f12f2b02c6ab950/ast-grep-lang-typescript-0.0.5.tgz","_integrity":"sha512-KIUUPEl2cLLbArfyw0oBwm8mxSwZDzxekJmqu5eVM6VzzOzuEeSw0cYcwevEeZtmL6iq5SG9iDD9t3eEb3gfWQ==","_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-typescript_0.0.5_1765433544189_0.8336020089366136","host":"s3://npm-registry-packages-npm-production"}},"0.0.6":{"name":"@ast-grep/lang-typescript","version":"0.0.6","keywords":["ast-grep","ast-grep-lang"],"author":"","license":"ISC","_id":"@ast-grep/lang-typescript@0.0.6","maintainers":[{"name":"herringtondarkholme","email":"nonamesheep@outlook.com"}],"dist":{"shasum":"e41e4e2e0e7f13413e641fa76e6a42e3f87663f4","tarball":"https://registry.npmjs.org/@ast-grep/lang-typescript/-/lang-typescript-0.0.6.tgz","fileCount":18,"integrity":"sha512-J7B9zyf/VrxNr/lMxbKHmNTQKsO/GdUzOFbPeLbCwI2h6f2SydUwCTfiFO8qXrcrdwkJAxkUH40/Vj2ISfUgDQ==","signatures":[{"sig":"MEUCIBA+Qm1UfGwlvpPNLzDtcRUb/q9tolmXXADG/bpuZABqAiEAqkxVwPNi4QpY5X0YP0zgtKO3QVVgBOg/asSj3VquKUY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15021592},"main":"index.js","_from":"file:ast-grep-lang-typescript-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/typescript","source":"node nursery.js source","postinstall":"node postinstall.js"},"_npmUser":{"name":"herringtondarkholme","email":"nonamesheep@outlook.com"},"_resolved":"/tmp/da35e117a9fcf20d2aac6e2a8a6ec5ff/ast-grep-lang-typescript-0.0.6.tgz","_integrity":"sha512-J7B9zyf/VrxNr/lMxbKHmNTQKsO/GdUzOFbPeLbCwI2h6f2SydUwCTfiFO8qXrcrdwkJAxkUH40/Vj2ISfUgDQ==","_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-typescript_0.0.6_1768081572904_0.7700867664517341","host":"s3://npm-registry-packages-npm-production"}},"0.0.7":{"name":"@ast-grep/lang-typescript","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/typescript","source":"node nursery.js source","postinstall":"node postinstall.js","test":"node nursery.js test"},"_id":"@ast-grep/lang-typescript@0.0.7","types":"./index.d.ts","_integrity":"sha512-PMUzzOFd+LojjV993oKecdMjswJebQ/rpg5O3PFhO5lYoSeGDy/hyglV6BtO9hUNaI5CNDAAVe00qznrLQmPlg==","_resolved":"/tmp/b9d2d2d5909214a3032a75118c6039d5/ast-grep-lang-typescript-0.0.7.tgz","_from":"file:ast-grep-lang-typescript-0.0.7.tgz","_nodeVersion":"20.20.1","_npmVersion":"10.8.2","dist":{"integrity":"sha512-PMUzzOFd+LojjV993oKecdMjswJebQ/rpg5O3PFhO5lYoSeGDy/hyglV6BtO9hUNaI5CNDAAVe00qznrLQmPlg==","shasum":"4b029d36329707a06484d9b2c6c06423dc481c3f","tarball":"https://registry.npmjs.org/@ast-grep/lang-typescript/-/lang-typescript-0.0.7.tgz","fileCount":19,"unpackedSize":16440897,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIDDKPKEdKQ+Jny1Mfkw0B/FQY4NVqZhy4LWhysyZaB4HAiEAtFDQRz67pRfRF5ozxmbCKseDu3/92MirjXr6zao0Gm4="}]},"_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-typescript_0.0.7_1773542512486_0.023863532023229217"},"_hasShrinkwrap":false}},"time":{"created":"2025-04-13T19:29:48.875Z","modified":"2026-03-15T02:41:52.891Z","0.0.2":"2025-04-13T19:29:49.229Z","0.0.3":"2025-06-09T01:54:50.236Z","0.0.4":"2025-08-14T03:17:52.277Z","0.0.5":"2025-12-11T06:12:24.478Z","0.0.6":"2026-01-10T21:46:13.112Z","0.0.7":"2026-03-15T02:41:52.733Z"},"license":"ISC","keywords":["ast-grep","ast-grep-lang"],"description":"## Installation","maintainers":[{"name":"herringtondarkholme","email":"nonamesheep@outlook.com"}],"readme":"# ast-grep napi language for typescript\n\n## Installation\n\nIn a pnpm project, run:\n\n```bash\npnpm install @ast-grep/lang-typescript\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 typescript from '@ast-grep/lang-typescript'\nimport { registerDynamicLanguage, parse } from '@ast-grep/napi'\n\nregisterDynamicLanguage({ typescript })\n\nconst sg = parse('typescript', `your code`)\nsg.root().kind()\n```\n","readmeFilename":"README.md"}