Skip to main content
PRONeed enterprise-grade codemods tailored to your codebase?

Assess, plan, evolve.

Reusable compiler-aware skills that help coding agents understand, plan, and safely evolve your codebase.

3 packages

Sort by
axios/fetch

Migrate from axios to fetch. Requires `--OPENAI_API_KEY=$OPENAI_API_KEY` to be set. ## Example ### Before ```ts const { data } = await axios.get(url, { responseType: "arraybuffer", }); ``` ### After ```ts const response = await fetch(url); if (!response.ok) throw new Error("Network response was not ok."); const data = await response.arrayBuffer(); ``` ### Before ```ts const { data } = await axios.post( `https://app.posthog.com/api/projects/${this.__projectId}/query/`, { query: { kind: "HogQLQuery", query: "select properties.codemodName, count(*) from events where event in ('codemod.CLI.codemodExecuted', 'codemod.VSCE.codemodExecuted') group by properties.codemodName", }, }, { headers: { Authorization: this.__authHeader, }, }, ); ``` ### After ```ts const response = await fetch( `https://app.posthog.com/api/projects/${this.__projectId}/query/`, { method: "POST", headers: { "Content-Type": "application/json", Authorization: this.__authHeader, }, body: JSON.stringify({ query: { kind: "HogQLQuery", query: "select properties.codemodName, count(*) from events where event in ('codemod.CLI.codemodExecuted', 'codemod.VSCE.codemodExecuted') group by properties.codemodName", }, }), }, ); if (!response.ok) { throw new Error(`HTTP error! status: ${response.status}`); } const data = await response.json(); ```

  • axios
  • fetch
  • +1
CCodemod
v1.0.1
6
a year ago
nodejs/axios-to-whatwg-fetch

Replace `axios` with `fetch`

  • transformation
  • migration
Nnodejs avatarnodejs
v1.0.0
363
6 months ago
codemod/axios-basic-auth-with-env

Transforms hardcoded Basic Authentication headers in Axios requests to use environment variables instead

  • security
  • axios
  • +4
Ccodemod avatarcodemod
v0.1.1
5
11 months ago

Build your own codemod!

Describe the migration you need and Codemod Agent will create a codemod for you.

Ready to evolve your codebase?

Build tailored, compiler-aware skills to assess, plan, and automate complex codebase changes.