{"_id":"@ast-grep/lang-swift","_rev":"7-3e205d72407b9efdd11e58297ea62060","name":"@ast-grep/lang-swift","dist-tags":{"latest":"0.0.8"},"versions":{"0.0.2":{"name":"@ast-grep/lang-swift","version":"0.0.2","keywords":["ast-grep","ast-grep-lang"],"author":"","license":"ISC","_id":"@ast-grep/lang-swift@0.0.2","maintainers":[{"name":"herringtondarkholme","email":"nonamesheep@outlook.com"}],"dist":{"shasum":"49cad7e24d98b9dcdf7d923cec14307ec5b9d47a","tarball":"https://registry.npmjs.org/@ast-grep/lang-swift/-/lang-swift-0.0.2.tgz","fileCount":19,"integrity":"sha512-D0trWwoHPowEDfzfbrSaYuPw5RfW39J6YGPo7ZqFXXG6K8MbOTg3yun5W9BrM7kVr0a+v7WnratQkr/CkcpbXw==","signatures":[{"sig":"MEUCIQC7Dlw4JxbnNn4SLemaoucpQsTi6oYuKlJt8vnqEK9uAgIgEbageIwl8C/Lot1PdhptvI5/fa1m3TgPE24z6BZnVvo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":59155822},"main":"index.js","_from":"file:ast-grep-lang-swift-0.0.2.tgz","types":"./index.d.ts","scripts":{"test":"node nursery.js test","build":"tree-sitter build -o parser.so","source":"node nursery.js source","postinstall":"node postinstall.js"},"_npmUser":{"name":"herringtondarkholme","email":"nonamesheep@outlook.com"},"_resolved":"/tmp/7771dedcaba9140e0d00cd7791ceae18/ast-grep-lang-swift-0.0.2.tgz","_integrity":"sha512-D0trWwoHPowEDfzfbrSaYuPw5RfW39J6YGPo7ZqFXXG6K8MbOTg3yun5W9BrM7kVr0a+v7WnratQkr/CkcpbXw==","_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.2","tree-sitter-swift":"0.7.0"},"peerDependencies":{"tree-sitter-cli":"0.24.6"},"peerDependenciesMeta":{"tree-sitter-cli":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/lang-swift_0.0.2_1743882561877_0.8086460846806764","host":"s3://npm-registry-packages-npm-production"}},"0.0.3":{"name":"@ast-grep/lang-swift","version":"0.0.3","keywords":["ast-grep","ast-grep-lang"],"author":"","license":"ISC","_id":"@ast-grep/lang-swift@0.0.3","maintainers":[{"name":"herringtondarkholme","email":"nonamesheep@outlook.com"}],"dist":{"shasum":"6949b51efd6c5fd37bf265418974b586418e569a","tarball":"https://registry.npmjs.org/@ast-grep/lang-swift/-/lang-swift-0.0.3.tgz","fileCount":19,"integrity":"sha512-uKNn7IP4jUIKyUtpTcHxsM4McdWEC7v6Oc2a2pg6adOyY5tYy6R40ZWa1C8tolUq64GqXLnsPjQHTe0G5brQGg==","signatures":[{"sig":"MEUCIQDHywYPQu5po7bz+R+w0oE7P0f4K6ZX+jgtz0grv3ovlwIgLwWyw5Ymtv5MPkIYpoyN6DaORDJWhCSU2wRk9nA792M=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":59155822},"main":"index.js","_from":"file:ast-grep-lang-swift-0.0.3.tgz","types":"./index.d.ts","scripts":{"test":"node nursery.js test","build":"tree-sitter build -o parser.so","source":"node nursery.js source","postinstall":"node postinstall.js"},"_npmUser":{"name":"herringtondarkholme","email":"nonamesheep@outlook.com"},"_resolved":"/tmp/aced958a264e061758ad8955179c3fed/ast-grep-lang-swift-0.0.3.tgz","_integrity":"sha512-uKNn7IP4jUIKyUtpTcHxsM4McdWEC7v6Oc2a2pg6adOyY5tYy6R40ZWa1C8tolUq64GqXLnsPjQHTe0G5brQGg==","_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-swift":"0.7.0"},"peerDependencies":{"tree-sitter-cli":"0.25.6"},"peerDependenciesMeta":{"tree-sitter-cli":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/lang-swift_0.0.3_1749434057535_0.9052702414211118","host":"s3://npm-registry-packages-npm-production"}},"0.0.4":{"name":"@ast-grep/lang-swift","version":"0.0.4","keywords":["ast-grep","ast-grep-lang"],"author":"","license":"ISC","_id":"@ast-grep/lang-swift@0.0.4","maintainers":[{"name":"herringtondarkholme","email":"nonamesheep@outlook.com"}],"dist":{"shasum":"f0e5effd62237e28c9449ceca48256582eda25fe","tarball":"https://registry.npmjs.org/@ast-grep/lang-swift/-/lang-swift-0.0.4.tgz","fileCount":19,"integrity":"sha512-Wv0/qBHUjudfwkGK9VFyU5k3oC3Wl0AAAojPQhkg5ljkDSWMWzE43dPZDBaTYHxlDXRkbr8RaZlncA1T9RLazg==","signatures":[{"sig":"MEUCIQCne+NU73+PKNnzfZM4+lPsKoGZSP4BfFhPWaYfrOxwMgIgYjNNydSrRoZcw00ULmw28nM7mDt99FC2FAILGc0xM34=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":66015855},"main":"index.js","_from":"file:ast-grep-lang-swift-0.0.4.tgz","types":"./index.d.ts","scripts":{"test":"node nursery.js test","build":"tree-sitter build -o parser.so","source":"node nursery.js source","postinstall":"node postinstall.js"},"_npmUser":{"name":"herringtondarkholme","email":"nonamesheep@outlook.com"},"_resolved":"/tmp/d59d235fa1580d4f5d2eeb268d40e815/ast-grep-lang-swift-0.0.4.tgz","_integrity":"sha512-Wv0/qBHUjudfwkGK9VFyU5k3oC3Wl0AAAojPQhkg5ljkDSWMWzE43dPZDBaTYHxlDXRkbr8RaZlncA1T9RLazg==","_npmVersion":"10.8.2","description":"## Installation","directories":{},"_nodeVersion":"20.19.4","dependencies":{"@ast-grep/setup-lang":"0.0.3"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"tree-sitter-cli":"0.25.8","@ast-grep/nursery":"0.0.6","tree-sitter-swift":"0.7.1"},"peerDependencies":{"tree-sitter-cli":"0.25.8"},"peerDependenciesMeta":{"tree-sitter-cli":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/lang-swift_0.0.4_1753650944305_0.7246059308251582","host":"s3://npm-registry-packages-npm-production"}},"0.0.5":{"name":"@ast-grep/lang-swift","version":"0.0.5","keywords":["ast-grep","ast-grep-lang"],"author":"","license":"ISC","_id":"@ast-grep/lang-swift@0.0.5","maintainers":[{"name":"herringtondarkholme","email":"nonamesheep@outlook.com"}],"dist":{"shasum":"f63273baf3b0081880136f15f4e7c0cff408edda","tarball":"https://registry.npmjs.org/@ast-grep/lang-swift/-/lang-swift-0.0.5.tgz","fileCount":19,"integrity":"sha512-tuPBT05HUW7KEmPRfp/pPdwE/tl9Mra+xPPfR3OdzzfmqiNCl/NfUIsLZNTM3YgSk7LzwiFEAXKLxdqXh+WF8Q==","signatures":[{"sig":"MEQCIA9G8sZjm5ZMxC8y3jIg6bjC1Ro5qzo3PtUgWJo48BuNAiBAWCMn7y0BcswymSL3RdPxwvrE9EbOgEo7cA2LXaCQ9Q==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":66016306},"main":"index.js","_from":"file:ast-grep-lang-swift-0.0.5.tgz","types":"./index.d.ts","scripts":{"test":"node nursery.js test","build":"tree-sitter build -o parser.so","source":"node nursery.js source","postinstall":"node postinstall.js"},"_npmUser":{"name":"herringtondarkholme","email":"nonamesheep@outlook.com"},"_resolved":"/tmp/59bb52d0193715aa5fbcaad1d4cce35e/ast-grep-lang-swift-0.0.5.tgz","_integrity":"sha512-tuPBT05HUW7KEmPRfp/pPdwE/tl9Mra+xPPfR3OdzzfmqiNCl/NfUIsLZNTM3YgSk7LzwiFEAXKLxdqXh+WF8Q==","_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-swift":"0.7.1"},"peerDependencies":{"tree-sitter-cli":"0.25.8"},"peerDependenciesMeta":{"tree-sitter-cli":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/lang-swift_0.0.5_1755141456117_0.46871495363689863","host":"s3://npm-registry-packages-npm-production"}},"0.0.6":{"name":"@ast-grep/lang-swift","version":"0.0.6","keywords":["ast-grep","ast-grep-lang"],"author":"","license":"ISC","_id":"@ast-grep/lang-swift@0.0.6","maintainers":[{"name":"herringtondarkholme","email":"nonamesheep@outlook.com"}],"dist":{"shasum":"cf7542ec9ec4aa1452fd8954c99396d045cb7c96","tarball":"https://registry.npmjs.org/@ast-grep/lang-swift/-/lang-swift-0.0.6.tgz","fileCount":19,"integrity":"sha512-hNxlNQIBFV7FRim+Wtf41rK2q+IgVriW0IYaXOeoLGv/yKIjnSnUZ3LvNasyKSsyJN87KW0QbEyC8UzsfevFSQ==","signatures":[{"sig":"MEUCIH1lSg4jRGZ98I3ir/5zPmZ0JRFOLxUSEbm9TcRZY+/JAiEAg4jF7VBwXa6cHBC3GbAweOCoEix7QCrpcqnXBdUkb+M=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":66016290},"main":"index.js","_from":"file:ast-grep-lang-swift-0.0.6.tgz","types":"./index.d.ts","scripts":{"test":"node nursery.js test","build":"tree-sitter build -o parser.so","source":"node nursery.js source","postinstall":"node postinstall.js"},"_npmUser":{"name":"herringtondarkholme","email":"nonamesheep@outlook.com"},"_resolved":"/tmp/3d1fabae600d5be0246024280ad525dd/ast-grep-lang-swift-0.0.6.tgz","_integrity":"sha512-hNxlNQIBFV7FRim+Wtf41rK2q+IgVriW0IYaXOeoLGv/yKIjnSnUZ3LvNasyKSsyJN87KW0QbEyC8UzsfevFSQ==","_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-swift":"0.7.1"},"peerDependencies":{"tree-sitter-cli":"0.25.8"},"peerDependenciesMeta":{"tree-sitter-cli":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/lang-swift_0.0.6_1765433520443_0.9219543202908043","host":"s3://npm-registry-packages-npm-production"}},"0.0.7":{"name":"@ast-grep/lang-swift","version":"0.0.7","keywords":["ast-grep","ast-grep-lang"],"author":"","license":"ISC","_id":"@ast-grep/lang-swift@0.0.7","maintainers":[{"name":"herringtondarkholme","email":"nonamesheep@outlook.com"}],"dist":{"shasum":"1ee0fcd547b4096c9339be1e7112e1414b01edb5","tarball":"https://registry.npmjs.org/@ast-grep/lang-swift/-/lang-swift-0.0.7.tgz","fileCount":20,"integrity":"sha512-RPq1NvF8L5r+QbBb6EUYmst7Wlizt1X9hfuaShniRvnLmI+OmGdBUJ9yhmJK+iu4lKzC5rhsiGAzXwiZT0to7Q==","signatures":[{"sig":"MEUCIQDIppJysP8qwXEqLihBeoN5R2OzoYEvi+1OhcKQLEiFcwIgO35pEY1UEyJWNOZU0PhoCHNiGvtpEAabZ4FLG0KaODA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":69394970},"main":"index.js","_from":"file:ast-grep-lang-swift-0.0.7.tgz","types":"./index.d.ts","scripts":{"test":"node nursery.js test","build":"tree-sitter build -o parser.so","source":"node nursery.js source","postinstall":"node postinstall.js"},"_npmUser":{"name":"herringtondarkholme","email":"nonamesheep@outlook.com"},"_resolved":"/tmp/88531bb1dbac39dc5c61aebbf11e4534/ast-grep-lang-swift-0.0.7.tgz","_integrity":"sha512-RPq1NvF8L5r+QbBb6EUYmst7Wlizt1X9hfuaShniRvnLmI+OmGdBUJ9yhmJK+iu4lKzC5rhsiGAzXwiZT0to7Q==","_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-swift":"0.7.1"},"peerDependencies":{"tree-sitter-cli":"0.25.8"},"peerDependenciesMeta":{"tree-sitter-cli":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/lang-swift_0.0.7_1768081609839_0.31871602261610166","host":"s3://npm-registry-packages-npm-production"}},"0.0.8":{"name":"@ast-grep/lang-swift","version":"0.0.8","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-swift":"0.7.1"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"scripts":{"build":"tree-sitter build -o parser.so","source":"node nursery.js source","postinstall":"node postinstall.js","test":"node nursery.js test"},"_id":"@ast-grep/lang-swift@0.0.8","types":"./index.d.ts","_integrity":"sha512-v+pLafFzXQJ/yTgmOclSzBDX+actORUqrAL0+fJkHlvnbYARxXXKoo4bonuWlzLjp+gOLP/Liuvhb4FlWgPFXA==","_resolved":"/tmp/c0496064d7054f9c936bd9d2fe96f88e/ast-grep-lang-swift-0.0.8.tgz","_from":"file:ast-grep-lang-swift-0.0.8.tgz","_nodeVersion":"20.20.0","_npmVersion":"10.8.2","dist":{"integrity":"sha512-v+pLafFzXQJ/yTgmOclSzBDX+actORUqrAL0+fJkHlvnbYARxXXKoo4bonuWlzLjp+gOLP/Liuvhb4FlWgPFXA==","shasum":"05511ed2aae15cbd366c975d941d18cbc6c9cf00","tarball":"https://registry.npmjs.org/@ast-grep/lang-swift/-/lang-swift-0.0.8.tgz","fileCount":21,"unpackedSize":72666067,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIA8OcFaPRoVk73TBJSQwVZ5gkqGSkNqlQghVyxkMjnz6AiBqHoQa5np15w4MNoh53KobhIaX4ZystamFwnFYPCgsjw=="}]},"_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-swift_0.0.8_1773542064851_0.4849313438402756"},"_hasShrinkwrap":false}},"time":{"created":"2025-04-05T19:49:21.809Z","modified":"2026-03-15T02:34:25.331Z","0.0.2":"2025-04-05T19:49:22.190Z","0.0.3":"2025-06-09T01:54:17.789Z","0.0.4":"2025-07-27T21:15:44.581Z","0.0.5":"2025-08-14T03:17:36.375Z","0.0.6":"2025-12-11T06:12:00.759Z","0.0.7":"2026-01-10T21:46:50.122Z","0.0.8":"2026-03-15T02:34:25.194Z"},"license":"ISC","keywords":["ast-grep","ast-grep-lang"],"description":"## Installation","maintainers":[{"name":"herringtondarkholme","email":"nonamesheep@outlook.com"}],"readme":"# ast-grep napi language for swift\n\n## Installation\n\nIn a pnpm project, run:\n\n```bash\npnpm install @ast-grep/lang-swift\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 swift from '@ast-grep/lang-swift'\nimport { registerDynamicLanguage, parse } from '@ast-grep/napi'\n\nregisterDynamicLanguage({ swift })\n\nconst sg = parse('swift', `your code`)\nsg.root().kind()\n```\n","readmeFilename":"README.md"}