{
  "name": "node-script",
  "title": "Run a Node.js script",
  "description": "Run a Node.js script you paste in, in a working directory of your choice, after installing any npm packages you list.",
  "category": "CI/CD",
  "tags": [
    "ci-cd",
    "node"
  ],
  "latestVersion": "1.0.0",
  "versions": [
    "1.0.0"
  ],
  "parameters": [
    "script",
    "npm-packages",
    "work-dir"
  ],
  "images": [
    "cgr.dev/chainguard/node@sha256:15c7b9f31bfbc87b78dca7adf6e8b518d7270ac425f8a346ed0e0be09fc60c53"
  ],
  "url": "https://catalog.dagweave.com/api/v1/items/node-script.json",
  "templateUrl": "https://catalog.dagweave.com/api/v1/items/node-script/latest/template.yaml",
  "page": "https://catalog.dagweave.com/items/node-script/",
  "entrypoint": "run",
  "parameterDetails": [
    {
      "name": "script",
      "title": "Script",
      "description": "The JavaScript source to run.",
      "type": "string",
      "required": true,
      "example": "console.log(\"hello\")"
    },
    {
      "name": "npm-packages",
      "title": "Npm packages",
      "description": "Space-separated npm packages to install first, pinned to a version. Leave blank to use only what Node ships.",
      "type": "string",
      "required": false,
      "default": "",
      "example": "yaml@2.8.1"
    },
    {
      "name": "work-dir",
      "title": "Work dir",
      "description": "Directory to run the script in, such as the checked-out repo root.",
      "type": "string",
      "required": false,
      "default": "."
    }
  ],
  "imageDetails": [
    {
      "ref": "cgr.dev/chainguard/node@sha256:15c7b9f31bfbc87b78dca7adf6e8b518d7270ac425f8a346ed0e0be09fc60c53",
      "repository": "cgr.dev/chainguard/node",
      "tag": "latest-dev",
      "digest": "sha256:15c7b9f31bfbc87b78dca7adf6e8b518d7270ac425f8a346ed0e0be09fc60c53"
    }
  ],
  "versionDetails": [
    {
      "version": "1.0.0",
      "date": "2026-10-18",
      "notes": "Initial release.",
      "latest": true,
      "installable": true,
      "url": "https://catalog.dagweave.com/api/v1/items/node-script/1.0.0.json",
      "templateUrl": "https://catalog.dagweave.com/api/v1/items/node-script/1.0.0/template.yaml"
    }
  ],
  "source": "https://github.com/dagweave/catalog/tree/67458f74dbbf913b03177f3cefc69424be85eb1d/catalog/node-script",
  "catalogSha": "67458f74dbbf913b03177f3cefc69424be85eb1d"
}
