# JavaScriptInstallerResource Constructors

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

A resource that represents a package installer for a JavaScript app.

## JavaScriptInstallerResource(string, string)

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

A resource that represents a package installer for a JavaScript app.

```csharp
public class JavaScriptInstallerResource
{
    public JavaScriptInstallerResource(
        string name,
        string workingDirectory)
    {
        // ...
    }
}
```

## Parameters

- `name` (`string`)
  The name of the resource.
- `workingDirectory` (`string`)
  The working directory to use for the command.
