# JavaScriptAppResource.WithDeno

- Module: [Aspire.Hosting.JavaScript](/reference/api/go/aspire.hosting.javascript.md)
- Defined on: [JavaScriptAppResource](/reference/api/go/aspire.hosting.javascript/javascriptappresource.md)
- Version: `17.0.0`
- Kind: `method`

Configures the JavaScript resource to use Deno as the package manager.

## Definition

```go
type JavaScriptAppResource interface {
    // ... omitted for brevity
    WithDeno(options ...*WithDenoOptions) JavaScriptAppResource
}
```

## Signature

```go
WithDeno(options ...*WithDenoOptions) JavaScriptAppResource
```

## Parameters

- `options` (`...*WithDenoOptions`) -- optional settings, see [Options](#options)

## Options

Optional parameters are passed in a trailing `options ...*WithDenoOptions` argument.

- `Install` (`*bool`) -- When `true`, creates an installer resource that runs `deno install` before the application starts. Defaults to `false`: unlike npm/Bun, Deno does not require a separate install step -- `deno run` fetches and caches dependencies under `DENO_DIR` on first use -- so no installer is wired by default. Set to `true` to pre-cache dependencies or to materialize a `node_modules` folder for Node compatibility.
- `InstallArgs` (`[]string`) -- Additional command-line arguments passed to `deno install`.

## Returns

[`JavaScriptAppResource`](/reference/api/go/aspire.hosting.javascript/javascriptappresource.md) -- The resource builder.

Returns a handle; failures surface later via `Err()`.

## Defined on

- [JavaScriptAppResource](/reference/api/go/aspire.hosting.javascript/javascriptappresource.md) -- `handle`
