modules

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: 8 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Modules

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

Modules essential struct

func New

func New(previous, current string) *Modules

New returns modules struct

func (Modules) Install

func (modules Modules) Install() (err error)

Install modules

func (Modules) Path

func (modules Modules) Path(version string) string

Path returns path to the node_modules folder

func (Modules) SameMajors

func (modules Modules) SameMajors() bool

SameMajors compares previous and current node version returning true if they have same major versions

Jump to

Keyboard shortcuts

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