{"_id":"@ast-grep/lang-bicep","_rev":"2-0f6fedc49014559e0172f8abc0301731","name":"@ast-grep/lang-bicep","dist-tags":{"latest":"0.0.2"},"versions":{"0.0.1":{"name":"@ast-grep/lang-bicep","version":"0.0.1","keywords":["ast-grep","ast-grep-lang","bicep","azure"],"author":"","license":"ISC","_id":"@ast-grep/lang-bicep@0.0.1","maintainers":[{"name":"herringtondarkholme","email":"nonamesheep@outlook.com"}],"dist":{"shasum":"d762c4bbd956a4396a3c6bba826e353cf8e82a42","tarball":"https://registry.npmjs.org/@ast-grep/lang-bicep/-/lang-bicep-0.0.1.tgz","fileCount":18,"integrity":"sha512-fqmLvAeSZzz4lj3wFNa6MLZBgZEDTEs9Mop4CoH8rtilzvmsoYkS84zb1D+koP7AVERaiUQyqK8DrL+BCahoWw==","signatures":[{"sig":"MEUCIBzxzaHT1Loa7x/q6D2Cf/riTyn6TeC1PuxjCxBQcmThAiEA6Bn/Qj/gRkwNNjzS5dnznPsjNTJkhHM4fDTWtdiEK30=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1961466},"main":"index.js","_from":"file:ast-grep-lang-bicep-0.0.1.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/1294b29bb8b09f524c35a5140c3830aa/ast-grep-lang-bicep-0.0.1.tgz","_integrity":"sha512-fqmLvAeSZzz4lj3wFNa6MLZBgZEDTEs9Mop4CoH8rtilzvmsoYkS84zb1D+koP7AVERaiUQyqK8DrL+BCahoWw==","_npmVersion":"10.8.2","description":"Azure Bicep language support for ast-grep","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-bicep":"1.1.0"},"peerDependencies":{"tree-sitter-cli":"0.25.8"},"peerDependenciesMeta":{"tree-sitter-cli":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/lang-bicep_0.0.1_1768679547578_0.5382227929947936","host":"s3://npm-registry-packages-npm-production"}},"0.0.2":{"name":"@ast-grep/lang-bicep","version":"0.0.2","description":"Azure Bicep language support for ast-grep","main":"index.js","keywords":["ast-grep","ast-grep-lang","bicep","azure"],"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-bicep":"1.1.0"},"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-bicep@0.0.2","types":"./index.d.ts","_integrity":"sha512-Hli6s8PZLx37rGKb2J/9Of2phDo7RoMDlav5/eRCnLENcF9U7iijGvyjkE5ry/MKo1016uIsSLBgDllFTRBzPA==","_resolved":"/tmp/84568f0b48ae61f5c93adb9d9f13e4e7/ast-grep-lang-bicep-0.0.2.tgz","_from":"file:ast-grep-lang-bicep-0.0.2.tgz","_nodeVersion":"20.20.1","_npmVersion":"10.8.2","dist":{"integrity":"sha512-Hli6s8PZLx37rGKb2J/9Of2phDo7RoMDlav5/eRCnLENcF9U7iijGvyjkE5ry/MKo1016uIsSLBgDllFTRBzPA==","shasum":"6cd83f068a93c23d703c1dc020695c4c09295346","tarball":"https://registry.npmjs.org/@ast-grep/lang-bicep/-/lang-bicep-0.0.2.tgz","fileCount":19,"unpackedSize":2114859,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIG5eNYk7VEu680P2zkj4q7kXLrCRUnZtQT9X0StRgCnGAiAuFNXt7cZuBGPYVLTlApNlMKAka3YiFwSaZgpfYPEjQA=="}]},"_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-bicep_0.0.2_1773542063101_0.10990430175128951"},"_hasShrinkwrap":false}},"time":{"created":"2026-01-17T19:52:27.475Z","modified":"2026-03-15T02:34:23.366Z","0.0.1":"2026-01-17T19:52:27.812Z","0.0.2":"2026-03-15T02:34:23.242Z"},"license":"ISC","keywords":["ast-grep","ast-grep-lang","bicep","azure"],"description":"Azure Bicep language support for ast-grep","maintainers":[{"name":"herringtondarkholme","email":"nonamesheep@outlook.com"}],"readme":"# ast-grep napi language for bicep\n\n## Installation\n\nIn a pnpm project, run:\n\n```bash\npnpm install @ast-grep/lang-bicep\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 bicep from '@ast-grep/lang-bicep'\nimport { registerDynamicLanguage, parse } from '@ast-grep/napi'\n\nregisterDynamicLanguage({ bicep })\n\nconst code = `\nparam location string = 'eastus'\nparam storageAccountName string = 'mystorageaccount'\n\nresource storageAccount 'Microsoft.Storage/storageAccounts@2023-05-01' = {\n  name: storageAccountName\n  location: location\n  sku: {\n    name: 'Standard_LRS'\n  }\n  kind: 'StorageV2'\n}\n`\n\nconst sg = parse('bicep', code)\nsg.root().kind()\n```\n\n## About Bicep\n\nAzure Bicep is a domain-specific language (DSL) for deploying Azure resources declaratively. It provides a transparent abstraction over ARM templates and aims to drastically simplify the authoring experience.\n\nFor more information, visit the [official Bicep documentation](https://docs.microsoft.com/en-us/azure/azure-resource-manager/bicep/overview).\n\n## Pattern Matching\n\nSince Bicep does not support `$` as an identifier character, ast-grep uses `_` (underscore) as the expando character for pattern matching:\n\n```js\n// Find all parameter declarations\nconst params = sg.root().findAll('param $NAME string')\n\n// Find all resource declarations\nconst resources = sg.root().findAll('resource $NAME $TYPE = { $$$ }')\n```\n\nNote: While you write `$` in your pattern strings, ast-grep internally translates them to `_` when parsing Bicep code.\n","readmeFilename":"README.md"}