nodejs

package
v0.0.0-...-c80f5a2 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateConfig

func CreateConfig() error

CreateConfig init node.js configuration and folders

func ExtractDist

func ExtractDist(distPath string) (string, error)

ExtractDist extracts the node.js distribution binary msi or zip file in the extract folder

func GetDistURL

func GetDistURL(version string, arch string) (string, string, error)

GetDistURL returns the node.js distribution binary url

func GetLatestVersion

func GetLatestVersion() (string, error)

GetLatestVersion returns the latest version of Node.js

Types

type Version

type Version struct {
	Version string `json:"version"`
}

Version structure

type Versions

type Versions []Version

Versions structure

Jump to

Keyboard shortcuts

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