# JavaScriptRunScriptAnnotation Properties

- Package: [Aspire.Hosting.JavaScript](/reference/api/csharp/aspire.hosting.javascript.md)
- Type: [JavaScriptRunScriptAnnotation](/reference/api/csharp/aspire.hosting.javascript/javascriptrunscriptannotation.md)
- Kind: `Properties`
- Members: `2`

Represents the annotation for the script used during run mode in a JavaScript resource.

## Args

- Name: `Args`
- Modifiers: `get`
- Returns: `string[]`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.JavaScript/JavaScriptRunScriptAnnotation.cs#L23)

Gets the command-line arguments for the script.

```csharp
public string[] Args { get; }
```

## ScriptName

- Name: `ScriptName`
- Modifiers: `get`
- Returns: `string`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.JavaScript/JavaScriptRunScriptAnnotation.cs#L18)

Gets the name of the script to run.

```csharp
public string ScriptName { get; }
```
