Documentation ¶
Index ¶
- func ConfigGet(npmFlags []string, confName, executablePath string) (string, error)
- func ConfigSet(key, value, executablePath string) error
- func GetConfigList(npmFlags []string, executablePath string) (data []byte, err error)
- func Pack(npmFlags []string, executablePath string) ([]string, error)
- type NpmConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigGet ¶
This method runs "npm config get" command and returns the value of the specified npm configuration.
func ConfigSet ¶ added in v2.57.0
This method runs "npm config set" command and sets the npm configuration.
func GetConfigList ¶
This method runs "npm c ls" command and returns the current npm configuration (calculated by all flags and .npmrc files). For more info see https://docs.npmjs.com/cli/config
Types ¶
type NpmConfig ¶
type NpmConfig struct { Npm string Command []string CommandFlags []string StrWriter io.WriteCloser ErrWriter io.WriteCloser }
func (*NpmConfig) GetErrWriter ¶
func (config *NpmConfig) GetErrWriter() io.WriteCloser
func (*NpmConfig) GetStdWriter ¶
func (config *NpmConfig) GetStdWriter() io.WriteCloser
Click to show internal directories.
Click to hide internal directories.