# JavaScriptPackageManagerAnnotation

- Kind: `class`
- Package: [Aspire.Hosting.JavaScript](/reference/api/csharp/aspire.hosting.javascript.md)
- Version: `13.4.0`
- Namespace: `Aspire.Hosting.JavaScript`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.JavaScript/JavaScriptPackageManagerAnnotation.cs)
- Implements: `IResourceAnnotation`

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

## Definition

```csharp
namespace Aspire.Hosting.JavaScript;

public sealed class JavaScriptPackageManagerAnnotation
    : Aspire.Hosting.ApplicationModel.IResourceAnnotation
{
    // ...
}
```

## Constructors

- [JavaScriptPackageManagerAnnotation(string, string?, string?)](/reference/api/csharp/aspire.hosting.javascript/javascriptpackagemanagerannotation/constructors.md#constructor-string-string-string) -- Represents the annotation for the JavaScript package manager used in a resource.

## Properties

- [CacheMount](/reference/api/csharp/aspire.hosting.javascript/javascriptpackagemanagerannotation/properties.md#cachemount) : `string?` `get` -- Gets the BuildKit cache mount path for the package manager, or null if not supported.
- [CommandSeparator](/reference/api/csharp/aspire.hosting.javascript/javascriptpackagemanagerannotation/properties.md#commandseparator) : `string?` `get; init` -- Gets the string used to separate individual commands in a command sequence, or `null` if one shouldn't be used. Defaults to "--".
- [ExecutableName](/reference/api/csharp/aspire.hosting.javascript/javascriptpackagemanagerannotation/properties.md#executablename) : `string` `get` -- Gets the executable used to run the JavaScript package manager.
- [InitializeDockerBuildStage](/reference/api/csharp/aspire.hosting.javascript/javascriptpackagemanagerannotation/properties.md#initializedockerbuildstage) : `Action<DockerfileStage>` `get; init` `experimental` -- Gets or sets a callback to initialize the Docker build stage before installing packages.
- [PackageFilesPatterns](/reference/api/csharp/aspire.hosting.javascript/javascriptpackagemanagerannotation/properties.md#packagefilespatterns) : [List<CopyFilePattern>](/reference/api/csharp/aspire.hosting.javascript/copyfilepattern.md) `get` -- Gets the file patterns for package dependency files.
- [ScriptCommand](/reference/api/csharp/aspire.hosting.javascript/javascriptpackagemanagerannotation/properties.md#scriptcommand) : `string?` `get` -- Gets the command used to run a script with the JavaScript package manager.
