nodejs

package
v0.8.6 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package nodejs provides all needed logic for installation of node.js

Index

Constants

This section is empty.

Variables

View Source
var (
	// VersionLink is the URL link from which we can get all possible versions
	VersionLink = "https://nodejs.org/dist"
)

Functions

This section is empty.

Types

type Args

type Args struct {
	Version     string
	Emitter     *emission.Emitter
	WithModules bool
}

Args is arguments struct for New() method

type Node

type Node struct {
	Version string

	Emitter *emission.Emitter
	pkg.Base
	// contains filtered or unexported fields
}

Node essential struct

func New

func New(args *Args) *Node

New returns language struct

func (Node) Bins

func (node Node) Bins() []string

Bins returns list of the all bins included with the distribution of the language

func (Node) Dots

func (node Node) Dots() []string

Dots returns list of the all available filenames which can define versions

func (Node) Events

func (node Node) Events() *emission.Emitter

Events returns language related event emitter

func (Node) Info

func (node Node) Info() map[string]string

Info provides all the info needed for installation of the plugin

func (Node) ListRemote

func (node Node) ListRemote() ([]string, error)

ListRemote returns list of the all available remote versions

func (Node) PostInstall

func (node Node) PostInstall() (err error)

PostInstall hook

func (Node) Switch

func (node Node) Switch() (err error)

Switch hook

Directories

Path Synopsis
Package modules is a way for installation node modules for node.js plugin
Package modules is a way for installation node modules for node.js plugin

Jump to

Keyboard shortcuts

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