---
agentTools:
  projectIndex: https://nativescript-batch.readme.io/llms.txt
---

# name

Gets or sets the (display) name of the batch.

[block:code]
{
  "codes": [
    {
      "code": "import Batch = require(\"nativescript-batch\");\n\nvar b = Batch.newBatch(function(ctx) {\n    console.log(\"Batch name: \" + ctx.batchName);\n});\n\nb.batch.name = \"My batch\";\n\nb.start();",
      "language": "javascript"
    }
  ]
}
[/block]