node

package
v0.1.7 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NodeRuntime

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

NodeRuntime implements the Runtime interface for Node.js

func New

func New(cache types.Cache, downloader types.Downloader) *NodeRuntime

New creates a new Node.js runtime manager

func (*NodeRuntime) Get

func (n *NodeRuntime) Get(ctx context.Context, version string) (string, error)

Get downloads and installs the specified Node.js version

func (*NodeRuntime) GetLatest

func (n *NodeRuntime) GetLatest(ctx context.Context) (string, error)

GetLatest downloads the latest LTS Node.js version

func (*NodeRuntime) List

func (n *NodeRuntime) List(ctx context.Context) ([]types.Version, error)

List returns available Node.js versions

func (*NodeRuntime) Name

func (n *NodeRuntime) Name() string

Name returns the runtime name

Jump to

Keyboard shortcuts

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