Skip to content

Commit b97f706

Browse files
jdebarochezCopilot
andauthored
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>
1 parent 4805480 commit b97f706

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

apps/site/pages/en/blog/migrations/axios-to-fetch.mdx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,16 @@ The codemod supports the following Axios methods and converts them to their Fetc
4141
- `axios.putForm(url[, data[, config]])`
4242
- `axios.patchForm(url[, data[, config]])`
4343

44+
## Usage
45+
46+
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).
47+
48+
You can find this codemod in the [Codemod Registry](https://app.codemod.com/registry/@nodejs/axios-to-whatwg-fetch).
49+
50+
```bash
51+
npx codemod @nodejs/axios-to-whatwg-fetch
52+
```
53+
4454
## Examples
4555

4656
### GET Request

0 commit comments

Comments
 (0)