npmrc

package
v1.109.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handle

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

func Apply

func Apply(baseDir string, s config.Settings) (*Handle, error)

The .npmrc and its backup can embed an inline `_authToken`, so both are written 0o600 (owner read/write only) to keep the token off shared hosts and multi-tenant CI runners. This matches npm, which chmods its own token-bearing user config to 0o600.

func (*Handle) Restore

func (h *Handle) Restore() error

Jump to

Keyboard shortcuts

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