Help us shape the future of Go! Take the 2026 Go Developer Survey

npm

package
v1.3.4-0...-99997b5 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NpmExecutableNames = []string{"npm"}

Functions

This section is empty.

Types

type Npm

type Npm struct {
	// contains filtered or unexported fields
}

func NewNpm

func NewNpm(ctx context.Context, name, executable string) (Npm, error)

func (Npm) Executable

func (npm Npm) Executable() string

func (Npm) ProjectDirectory

func (npm Npm) ProjectDirectory(_ []string) (string, error)

func (Npm) ResolveInstallTargets

func (npm Npm) ResolveInstallTargets(ctx context.Context, command []string) (*pm.Set[pm.Package], error)

func (Npm) RunCommand

func (npm Npm) RunCommand(ctx context.Context, command []string) error

Jump to

Keyboard shortcuts

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