{
 "kind": "tool",
 "slug": "xml2js",
 "path": "tools/xml2js/",
 "name": "xml2js",
 "maker": null,
 "density": "basic",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "Scraping, browsers and parsing",
   "tools/scraping-parsing/"
  ]
 ],
 "lead": "XML to JavaScript object parser for handling XML data in applications.",
 "chips": [
  {
   "label": "Scraping, browsers and parsing",
   "path": "tools/scraping-parsing/"
  },
  {
   "label": "NPM"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "npm install xml2js"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/Leonidas-from-XIV/node-xml2js"
  },
  {
   "label": "Website",
   "href": "https://github.com/Leonidas-from-XIV/node-xml2js"
  }
 ],
 "track": "New versions, deprecation and license changes on your dashboard",
 "verdicts": [
  {
   "key": "license",
   "label": "License",
   "value": "MIT",
   "status": "yes",
   "sub": "Use it in paid apps",
   "quote": null,
   "note": "License from npm.",
   "src": "https://github.com/Leonidas-from-XIV/node-xml2js"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Maintained",
   "status": "yes",
   "sub": "Last change Apr 30, 2026",
   "note": "",
   "src": "https://github.com/Leonidas-from-XIV/node-xml2js"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "15 projects",
   "status": "info",
   "sub": "#22 of 141 in its category",
   "note": "Dependency in 15 public GitHub projects set up for AI coding agents that we scanned (0.2%).",
   "src": null
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Install only",
   "status": "info",
   "sub": null,
   "note": "Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.",
   "src": null
  }
 ],
 "vfoot": "From the package registry and GitHub, checked daily.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What xml2js does",
   "parts": [
    {
     "t": "prose",
     "text": "XML to JavaScript object parser for handling XML data in applications."
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "xml2js popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "66",
       "of": "/ 100",
       "l": "Gid Score, #636 overall"
      },
      {
       "n": "65.6M",
       "l": "downloads a week, npm"
      },
      {
       "n": "4,955",
       "l": "GitHub stars"
      },
      {
       "n": "15",
       "l": "agent projects use it"
      }
     ]
    },
    {
     "t": "small",
     "text": "Gid Score measures public popularity and activity, not quality.",
     "link": "How the Gid Score is calculated",
     "path": "tools/top/"
    }
   ]
  },
  {
   "id": "usage",
   "nav": "How it is used",
   "h2": "How xml2js is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "xml2js is a dependency in 15 of the 6,258 public GitHub projects set up for AI coding agents that we scanned, too few to describe it from them alone. Our scan also samples projects by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750); counting those, it appears in 53 projects, and what it is used with below comes from all of them.",
      "The most used alternative in our scan is Cheerio (76 projects).",
      "Projects that use it most often also use Playwright (JavaScript) (50.9%), ESLint (71.7%), Jest (35.8%)."
     ]
    },
    {
     "t": "h3",
     "text": "By coding agent"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "8 projects, 0.3%",
       "v": "GitHub Copilot",
       "path": "agents/github-copilot/"
      },
      {
       "l": "6 projects, 0.2%",
       "v": "Claude Code",
       "path": "agents/claude-code/"
      },
      {
       "l": "5 projects, 0.2%",
       "v": "Cursor",
       "path": "agents/cursor/"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 50.9% of its projects",
       "v": "Playwright (JavaScript)",
       "path": "tools/playwright-test/"
      },
      {
       "l": "In 71.7% of its projects",
       "v": "ESLint",
       "path": "tools/eslint/"
      },
      {
       "l": "In 35.8% of its projects",
       "v": "Jest",
       "path": "tools/jest/"
      },
      {
       "l": "In 88.7% of its projects",
       "v": "TypeScript",
       "path": "tools/typescript/"
      },
      {
       "l": "In 58.5% of its projects",
       "v": "Zod",
       "path": "tools/zod/"
      },
      {
       "l": "In 35.8% of its projects",
       "v": "date-fns",
       "path": "tools/date-fns/"
      },
      {
       "l": "In 43.4% of its projects",
       "v": "dotenv",
       "path": "tools/dotenv/"
      },
      {
       "l": "In 30.2% of its projects",
       "v": "LangChain.js",
       "path": "tools/langchain-npm/"
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "usage",
   "h2": "More about xml2js",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "title": "More in Scraping, browsers and parsing",
       "path": "tools/scraping-parsing/",
       "items": [
        {
         "text": "Beautiful Soup",
         "path": "tools/beautifulsoup4/"
        },
        {
         "text": "Puppeteer",
         "path": "tools/puppeteer/"
        },
        {
         "text": "Playwright Core",
         "path": "tools/playwright-core/"
        },
        {
         "text": "lxml",
         "path": "tools/lxml/"
        },
        {
         "text": "Playwright (Python)",
         "path": "tools/playwright/"
        },
        {
         "text": "jsonc-parser",
         "path": "tools/jsonc-parser/"
        },
        {
         "text": "Mozilla Readability",
         "path": "tools/mozilla-readability/"
        },
        {
         "text": "linkedom",
         "path": "tools/linkedom/"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "xml2js",
       "me": true,
       "facts": [
        "MIT",
        "Gid 66",
        "65.6M/wk"
       ]
      },
      {
       "name": "Cheerio",
       "why": "jQuery-like syntax for parsing and manipulating HTML/XML with server-side speed.",
       "path": "tools/cheerio/",
       "facts": [
        "MIT",
        "Gid 78",
        "37.4M/wk"
       ]
      },
      {
       "name": "fast-xml-parser",
       "why": "High-performance XML parser and builder without native dependencies.",
       "path": "tools/fast-xml-parser/",
       "facts": [
        "MIT",
        "Gid 67",
        "119M/wk"
       ]
      }
     ],
     "more": "Compare xml2js with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "install",
     "intro": "Install it.",
     "code": "npm install xml2js"
    },
    {
     "t": "gap",
     "text": "No step-by-step start for xml2js yet: we have not written its hand-checked card."
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "npm xml2js"
  ],
  [
   "Category",
   "Scraping, browsers and parsing"
  ],
  [
   "License",
   "MIT"
  ],
  [
   "Gid Score",
   "65.7"
  ],
  [
   "Rank in category",
   "#22 of 141"
  ],
  [
   "GitHub",
   "Leonidas-from-XIV/node-xml2js"
  ],
  [
   "Last change",
   "Apr 30, 2026"
  ]
 ],
 "good": [],
 "checked_line": "From the package registry, GitHub and our scan of public agent projects; numbers update daily.",
 "logo": "https://agentgid.com/media/avatars/leonidas-from-xiv.png"
}