npm

package
v0.0.0-...-9878773 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NPM

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

func New

func New() *NPM

New creates a new npm manager instance

func (*NPM) GetMetadata

func (m *NPM) GetMetadata() plugin.Metadata

GetMetadata returns metadata descriptions Name, Slug, Manifest, ModulePath

func (*NPM) GetRootModule

func (m *NPM) GetRootModule(path string) (*meta.Package, error)

GetRootModule return root package information ex. Name, Version

func (*NPM) GetVersion

func (m *NPM) GetVersion() (string, error)

GetVersion returns npm version

func (*NPM) HasModulesInstalled

func (m *NPM) HasModulesInstalled(path string) error

HasModulesInstalled checks if modules of manifest file already installed

func (*NPM) IsValid

func (m *NPM) IsValid(path string) bool

IsValid checks if module has a valid Manifest file for npm manifest file is package.json

func (*NPM) ListModulesWithDeps

func (m *NPM) ListModulesWithDeps(path string, globalSettingFile string) ([]meta.Package, error)

ListModulesWithDeps return all info of installed modules

func (*NPM) ListUsedModules

func (m *NPM) ListUsedModules(path string) ([]meta.Package, error)

ListUsedModules return brief info of installed modules, Name and Version

func (*NPM) SetRootModule

func (m *NPM) SetRootModule(path string) error

SetRootModule ...

Jump to

Keyboard shortcuts

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