From b97f706b3e0d12637c302147ccdc76d34e621b95 Mon Sep 17 00:00:00 2001 From: Jean de Barochez <3436890+jdebarochez@users.noreply.github.com> Date: Mon, 25 May 2026 14:40:45 +0200 Subject: [PATCH] docs(blog): add usage section for axios-to-fetch article (#8914) * docs(blog): add usage section for axios-to-fetch article * Add link to the source code of this codemod * Add link to the codemod registry * Add usage command Signed-off-by: Jean de Barochez <3436890+jdebarochez@users.noreply.github.com> * docs: remove trailing colon in header Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Signed-off-by: Jean de Barochez <3436890+jdebarochez@users.noreply.github.com> --------- Signed-off-by: Jean de Barochez <3436890+jdebarochez@users.noreply.github.com> Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- apps/site/pages/en/blog/migrations/axios-to-fetch.mdx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/apps/site/pages/en/blog/migrations/axios-to-fetch.mdx b/apps/site/pages/en/blog/migrations/axios-to-fetch.mdx index cb1f07a590d56..518d5a3d07c1b 100644 --- a/apps/site/pages/en/blog/migrations/axios-to-fetch.mdx +++ b/apps/site/pages/en/blog/migrations/axios-to-fetch.mdx @@ -41,6 +41,16 @@ The codemod supports the following Axios methods and converts them to their Fetc - `axios.putForm(url[, data[, config]])` - `axios.patchForm(url[, data[, config]])` +## Usage + +The source code for this codemod can be found in the [axios-to-whatwg-fetch directory](https://github.com/nodejs/userland-migrations/tree/main/recipes/axios-to-whatwg-fetch). + +You can find this codemod in the [Codemod Registry](https://app.codemod.com/registry/@nodejs/axios-to-whatwg-fetch). + +```bash +npx codemod @nodejs/axios-to-whatwg-fetch +``` + ## Examples ### GET Request