Dagger
Search

npm

Install NPM packages.

Installation

dagger install github.com/jedevc/daggerverse/npm@v1.0.0

Entrypoint

Return Type
Npm
Example
func (m *myModule) example() *Npm  {
	return dag.
			Npm()
}

Types

Npm 🔗

nodeModules() 🔗

Installs npm packages into the node_modules/ directory using the package files

Return Type
Directory !
Arguments
NameTypeDefault ValueDescription
dirDirectory !-No description provided
Example
func (m *myModule) example(dir *Directory) *Directory  {
	return dag.
			Npm().
			NodeModules(dir)
}