Documentation
¶
Index ¶
- type NPM
- func (m *NPM) GetMetadata() plugin.Metadata
- func (m *NPM) GetRootModule(path string) (*meta.Package, error)
- func (m *NPM) GetVersion() (string, error)
- func (m *NPM) HasModulesInstalled(path string) error
- func (m *NPM) IsValid(path string) bool
- func (m *NPM) ListModulesWithDeps(path string, globalSettingFile string) ([]meta.Package, error)
- func (m *NPM) ListUsedModules(path string) ([]meta.Package, error)
- func (m *NPM) SetRootModule(path string) error
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 (*NPM) GetMetadata ¶
GetMetadata returns metadata descriptions Name, Slug, Manifest, ModulePath
func (*NPM) GetRootModule ¶
GetRootModule return root package information ex. Name, Version
func (*NPM) HasModulesInstalled ¶
HasModulesInstalled checks if modules of manifest file already installed
func (*NPM) IsValid ¶
IsValid checks if module has a valid Manifest file for npm manifest file is package.json
func (*NPM) ListModulesWithDeps ¶
ListModulesWithDeps return all info of installed modules
func (*NPM) ListUsedModules ¶
ListUsedModules return brief info of installed modules, Name and Version
Click to show internal directories.
Click to hide internal directories.