Documentation ¶ Index ¶ type Handle func Apply(baseDir string, s config.Settings) (*Handle, error) func (h *Handle) Restore() error 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 Source Files ¶ View all Source files npmrc.go Click to show internal directories. Click to hide internal directories.