# JavaScriptAppResource

- Kind: `class`
- Package: [Aspire.Hosting.JavaScript](/reference/api/csharp/aspire.hosting.javascript.md)
- Version: `13.6.5`
- Namespace: `Aspire.Hosting.JavaScript`
- Target framework: `net10.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/b33d222049f1ecc3bc7257ec07b622fe550b2580/src/Aspire.Hosting.JavaScript/JavaScriptAppResource.cs)
- Inherits: `ExecutableResource`
- Implements: `IResource`, `IResourceWithEndpoints`, `IResourceWithContainerFiles`, `IResourceWithServiceDiscovery`

A resource that represents a JavaScript application.

## Definition

```csharp
namespace Aspire.Hosting.JavaScript;

public class JavaScriptAppResource
    : Aspire.Hosting.ApplicationModel.ExecutableResource,
      Aspire.Hosting.ApplicationModel.IResource,
      Aspire.Hosting.ApplicationModel.IResourceWithEndpoints,
      Aspire.Hosting.IResourceWithContainerFiles,
      Aspire.Hosting.IResourceWithServiceDiscovery
{
    // ...
}
```

## ATS metadata

### ATS export

- Type ID: `Aspire.Hosting.JavaScript/JavaScriptAppResource`
- Public instance properties are exported as ATS capabilities.

## Constructors

- [JavaScriptAppResource(string, string, string)](/reference/api/csharp/aspire.hosting.javascript/javascriptappresource/constructors.md#constructor-string-string-string) -- A resource that represents a JavaScript application.
