nodejs

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

README

Manages NodeJS: an active version, registry, etc.

Commands

  • node
    • registry
      • use
      • add
      • list
      • del
Examples of usage
> umc node registry use my-work-registry

NPRM - Node Package Registry Manager

The npmrm is a shortcut for umc node registry so instead of

> umc node registry use my-work-registry

you can use

> nprm use my-work-registry

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetRegistry

func SetRegistry(registry string) (string, error)

func SwitchVersion

func SwitchVersion(version string) error

Types

type RegistryInfo

type RegistryInfo struct {
	Url      string `yaml:"url" json:"url"`
	Home     string `yaml:"home" json:"home"`
	IsCustom bool   `yaml:"isCustom,omitempty" json:"isCustom,omitempty"`
}

RegistryInfo holds information about Node package manager registry

func GetRegistryByName

func GetRegistryByName(name string) RegistryInfo

Jump to

Keyboard shortcuts

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