Dagger
Search

nodejs

No long description provided.

Installation

dagger install github.com/RawkodeAcademy/Daggerverse/nodejs@d86ceaf72ace8361a7e61f86cdc34a4f7d5cfff8

Entrypoint

Return Type
Nodejs
Example
dagger -m github.com/RawkodeAcademy/Daggerverse/nodejs@d86ceaf72ace8361a7e61f86cdc34a4f7d5cfff8 call \
func (m *myModule) example() *Nodejs  {
	return dag.
			Nodejs()
}
@function
def example() -> dag.Nodejs:
	return (
		dag.nodejs()
	)
@func()
example(): Nodejs {
	return dag
		.nodejs()
}

Types

Nodejs 🔗

withBun() 🔗

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
directoryDirectory !-No description provided
versionString !"latest"No description provided
Example
dagger -m github.com/RawkodeAcademy/Daggerverse/nodejs@d86ceaf72ace8361a7e61f86cdc34a4f7d5cfff8 call \
 with-bun --directory DIR_PATH --version string
func (m *myModule) example(directory *Directory, version string) *Container  {
	return dag.
			Nodejs().
			WithBun(directory, version)
}
@function
def example(directory: dagger.Directory, version: str) -> dagger.Container:
	return (
		dag.nodejs()
		.with_bun(directory, version)
	)
@func()
example(directory: Directory, version: string): Container {
	return dag
		.nodejs()
		.withBun(directory, version)
}

withNpm() 🔗

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
directoryDirectory !-No description provided
versionString !"latest"No description provided
Example
dagger -m github.com/RawkodeAcademy/Daggerverse/nodejs@d86ceaf72ace8361a7e61f86cdc34a4f7d5cfff8 call \
 with-npm --directory DIR_PATH --version string
func (m *myModule) example(directory *Directory, version string) *Container  {
	return dag.
			Nodejs().
			WithNpm(directory, version)
}
@function
def example(directory: dagger.Directory, version: str) -> dagger.Container:
	return (
		dag.nodejs()
		.with_npm(directory, version)
	)
@func()
example(directory: Directory, version: string): Container {
	return dag
		.nodejs()
		.withNpm(directory, version)
}