npmi

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeterminePlatform

func DeterminePlatform() (string, error)

DeterminePlatform determines the Node.js runtime platform and mode

func HashFile

func HashFile(filename string) (string, error)

HashFile hashes a file using SHA-256

func HashString

func HashString(str string) (string, error)

HashString hashes a given string using SHA-256

func InitNodeBinaries

func InitNodeBinaries() error

InitNodeBinaries makes sure that required Node.js binaries are present

func InstallPackages

func InstallPackages() (stdout string, stderr string, err error)

InstallPackages installs packages from NPM

func RunPrecacheCommand

func RunPrecacheCommand(commandLine string) (stdout string, stderr string, err error)

RunPrecacheCommand runs a given command before inserting freshly installed NPM deps into cache

Types

This section is empty.

Jump to

Keyboard shortcuts

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