packagejson

package
v0.6.25 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 8, 2025 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package packagejson provides NodeJS/Bun package.json parsing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Package

type Package struct {
	Name   string `json:"name"`
	Module string `json:"module"`
	Type   string `json:"type"`

	DevDependencies map[string]string `json:"devDependencies"` //nolint:tagliatelle
}

func Open

func Open(name string) (Package, error)

Open and parse the given file name.

func (Package) IsBun

func (p Package) IsBun() bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL