{"_id":"@0x5a17ed/ts-parse-go-mod","name":"@0x5a17ed/ts-parse-go-mod","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@0x5a17ed/ts-parse-go-mod","type":"module","version":"1.0.0","description":"TypeScript parser for go.mod files","publishConfig":{"access":"public"},"main":"./dist/index.mjs","types":"./dist/index.d.mts","exports":{".":{"types":"./dist/index.d.mts","import":"./dist/index.mjs"}},"scripts":{"build":"tsdown","typecheck":"tsc -p tsconfig.build.json --noEmit","test":"vitest run","test:watch":"vitest","lint":"eslint src","lint:fix":"eslint src --fix","prepublishOnly":"npm run typecheck && npm run build"},"keywords":["go","go.mod","parser","golang"],"license":"BSD-0-Clause","devDependencies":{"@stylistic/eslint-plugin":"^5.7.0","@types/node":"^25.0.9","eslint":"^9.39.2","ts-node":"^10.9.2","tsdown":"^0.20.0-beta.4","typescript":"^5.9.3","typescript-eslint":"^8.53.1","vitest":"^4.0.17"},"_id":"@0x5a17ed/ts-parse-go-mod@1.0.0","gitHead":"afc68aa3d831172426abff65c0ee224e5279109a","_nodeVersion":"22.22.0","_npmVersion":"10.9.4","dist":{"integrity":"sha512-jGDijeycn5lm7p/s4WCX4rli/EvBH4NamFqRTjeZh7MIjmwK96xxgAav0hego9Q2NX+dtNWbXma08idPO9E8Aw==","shasum":"62db9b11ce2de0cec97a5f85c4f389a69f647f8f","tarball":"https://registry.npmjs.org/@0x5a17ed/ts-parse-go-mod/-/ts-parse-go-mod-1.0.0.tgz","fileCount":7,"unpackedSize":92790,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIEtUFVMdf5M68Vs0rU5tlD7xHi6cFns0m88L1L0WCpYcAiEArltJxMfI4DEjJQJIrLJuNqwtvUoaZkivuxd9LcCHU5c="}]},"_npmUser":{"name":"0x5a17ed","email":"0x5a17ed@mailbox.org"},"directories":{},"maintainers":[{"name":"0x5a17ed","email":"0x5a17ed@mailbox.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/ts-parse-go-mod_1.0.0_1769048256823_0.033676606409513754"},"_hasShrinkwrap":false}},"time":{"created":"2026-01-22T02:17:36.766Z","1.0.0":"2026-01-22T02:17:36.986Z","modified":"2026-01-22T02:17:37.161Z"},"maintainers":[{"name":"0x5a17ed","email":"0x5a17ed@mailbox.org"}],"description":"TypeScript parser for go.mod files","keywords":["go","go.mod","parser","golang"],"license":"BSD-0-Clause","readme":"# TypeScript go.mod parser\n\nTypeScript parser for go.mod files.\n\n## Install\n\n```\nnpm install @0x5a17ed/ts-parse-go-mod\n```\n\n## Usage\n\n```typescript\nimport { parseGoMod, NodeKind } from \"@0x5a17ed/ts-parse-go-mod\";\n\nconst result = parseGoMod(`\nmodule example.com/myproject\n\ngo 1.24\n\nrequire github.com/pkg/errors v0.9.1\n`);\n\nfor (const directive of result.directives) {\n\tif (directive.kind === NodeKind.ModuleDirective) {\n\t\tconsole.log(directive.modulePath);\n\t}\n}\n```\n\n## Supported Directives\n\n- `module`\n- `go`\n- `toolchain`\n- `require`\n- `replace`\n- `exclude`\n- `retract`\n- `tool`\n\n## License\n\nBSD-0-Clause\n","readmeFilename":"README.md","_rev":"1-46e82206956f2d55bd47af410a59edf7"}