npm
Install NPM packages.
Installation
dagger install github.com/jedevc/daggerverse/npm@v1.0.0
Types
Npm 🔗
nodeModules() 🔗
Installs npm packages into the node_modules/ directory using the package files
Return Type
Directory !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
dir | Directory ! | - | No description provided |
Example
func (m *myModule) example(dir *Directory) *Directory {
return dag.
Npm().
NodeModules(dir)
}