Catalog npm
Back to packageRELEASE DETAILS

1.0.0

npm

@0x5a17ed/ts-parse-go-mod

TypeScript parser for go.mod files

gogo.modgolangparser
Published22 Jan 2026
Direct dependencies8
Transitive dependenciesNot calculated

README

Current package documentation

TypeScript go.mod parser

TypeScript parser for go.mod files.

Install

npm install @0x5a17ed/ts-parse-go-mod

Usage

import { parseGoMod, NodeKind } from "@0x5a17ed/ts-parse-go-mod";

const result = parseGoMod(`
module example.com/myproject

go 1.24

require github.com/pkg/errors v0.9.1
`);

for (const directive of result.directives) {
	if (directive.kind === NodeKind.ModuleDirective) {
		console.log(directive.modulePath);
	}
}

Supported Directives

  • module
  • go
  • toolchain
  • require
  • replace
  • exclude
  • retract
  • tool

License

BSD-0-Clause

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 8

Native requirements
8 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
@stylistic/eslint-plugin
Environment
{
  "local_name": "@stylistic/eslint-plugin",
  "alias": false,
  "peer_metadata": null
}
^5.7.0development
@types/node
Environment
{
  "local_name": "@types/node",
  "alias": false,
  "peer_metadata": null
}
^25.0.9development
eslint
Environment
{
  "local_name": "eslint",
  "alias": false,
  "peer_metadata": null
}
^9.39.2development
ts-node
Environment
{
  "local_name": "ts-node",
  "alias": false,
  "peer_metadata": null
}
^10.9.2development
tsdown
Environment
{
  "local_name": "tsdown",
  "alias": false,
  "peer_metadata": null
}
^0.20.0-beta.4development
typescript
Environment
{
  "local_name": "typescript",
  "alias": false,
  "peer_metadata": null
}
^5.9.3development
typescript-eslint
Environment
{
  "local_name": "typescript-eslint",
  "alias": false,
  "peer_metadata": null
}
^8.53.1development
vitest
Environment
{
  "local_name": "vitest",
  "alias": false,
  "peer_metadata": null
}
^4.0.17development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "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="
    }
  ]
}

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 22:37 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:9d0350b176079f565aa8ea3c2014b27d2c2ace4a11f79a43ec05fea35df41a0e

Other collected versions

View all collected versions →