packagejson

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2026 License: MIT 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"`
	Engines map[string]string `json:"engines"`
	Scripts map[string]string `json:"scripts"`

	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