# JavaScriptPackageManagerAnnotation Constructors

- Package: [Aspire.Hosting.JavaScript](/reference/api/csharp/aspire.hosting.javascript.md)
- Type: [JavaScriptPackageManagerAnnotation](/reference/api/csharp/aspire.hosting.javascript/javascriptpackagemanagerannotation.md)
- Kind: `Constructors`
- Members: `1`

Represents the annotation for the JavaScript package manager used in a resource.

## JavaScriptPackageManagerAnnotation(string, string?, string?)

- Name: `Constructor(string, string?, string?)`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.JavaScript/JavaScriptPackageManagerAnnotation.cs#L16-L42)

Represents the annotation for the JavaScript package manager used in a resource.

```csharp
public sealed class JavaScriptPackageManagerAnnotation
{
    public JavaScriptPackageManagerAnnotation(
        string executableName,
        string? runScriptCommand,
        string? cacheMount = null)
    {
        // ...
    }
}
```

## Parameters

- `executableName` (`string`)
  The name of the executable used to run the package manager.
- `runScriptCommand` (`string?`)
  The command used to run a script with the JavaScript package manager.
- `cacheMount` (`string?`) `optional`
  The BuildKit cache mount path for the package manager, or null if not supported.
