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.

6 packages

Sort by
rename-deno-interfaces

This codemod renames Deno typscript interface names in your codebase to their new names. ### Before ```ts function handleRecord(record: Deno.MXRecord) { // Handle the MX record } ``` ### After ```ts function handleRecord(record: Deno.MxRecord) { // Handle the MX record } ``` ### The following Deno types are replaced: - `Deno.CAARecord` → `Deno.CaaRecord` - `Deno.MXRecord` → `Deno.MxRecord` - `Deno.NAPTRRecord` → `Deno.NaptrRecord` - `Deno.SOARecord` → `Deno.SoaRecord` - `Deno.SRVRecord` → `Deno.SrvRecord` - `Deno.File` → `Deno.FsFile` - `Deno.Sever` → `Deno.HttpServer`

  • migration
  • Deno
  • +2
Llovelindhoni
v1.0.0
0
a year ago
python-s8392-bind-all-interfaces-mining

Mine python:S8392: Web servers should not bind to all network interfaces; read-only metrics with blocking severity

  • mining
  • metrics
  • +3
Aalexbit-codemod avataralexbit-codemod
v0.1.0
0
4 months ago
react-prop-types-typescript

Convert React PropTypes declarations into TypeScript props interfaces

  • React
  • PropTypes
  • +1
Ccodemod-com-bot avatarcodemod-com-bot
v0.1.4
59,301
4 days ago
deno-import-STL-types

This codemod updates deprecated Deno typescript interfaces in your codebase. It automatically imports the necessary typscript interfaces from the standard library ### Before ```ts function foo(closer: Deno.Closer) { // ... } ``` ### After ```ts import { Closer } from "jsr:@std/io/types"; function foo(closer: Closer) { // ... } ``` ### The following Typescript tinterfaces are replaced: - `Deno.Reader` → `Reader` - `Deno.ReaderSync` → `ReaderSync` - `Deno.Seeker` → `Seeker` - `Deno.SeekerSync` → `SeekerSync` - `Deno.Writer` → `Writer` - `Deno.WriterSync` → `WriterSync` - `Deno.Closer` → `Closer`

  • migration
  • Deno
  • +4
Llovelindhoni
v1.0.0
0
a year ago
styledictionary/4/hook-api-formats

## What Changed This codemod updates registered formats to be placed inside the `hooks.formats` property, instead of `format`, with a shift from the singular to the plural form. Additionally, the formatter handler function has been renamed to `format` for consistency. Some importable type interfaces have also been renamed. ## Before ```jsx import StyleDictionary from 'style-dictionary'; import type { Formatter, FormatterArguments } from 'style-dictionary/types'; // register it with register method StyleDictionary.registerFormat({ name: 'custom/json', formatter: ({ dictionary }) => JSON.stringify(dictionary, null, 2), }); export default { // OR define it inline format: { 'custom/json': ({ dictionary }) => JSON.stringify(dictionary, null, 2), }, platforms: { json: { files: [ { destination: 'output.json', format: 'custom/json', }, ], }, }, }; ``` ## After ```jsx import StyleDictionary from 'style-dictionary'; import type { FormatFn, FormatFnArguments } from 'style-dictionary/types'; // register it with register method StyleDictionary.registerFormat({ name: 'custom/json', format: ({ dictionary }) => JSON.stringify(dictionary, null, 2), }); export default { platforms: { json: { files: [ { destination: 'output.json', format: 'custom/json', }, ], }, }, hooks: { formats: { 'custom/json': ({ dictionary }) => JSON.stringify(dictionary, null, 2), }, }, }; ```

  • styledictionary
  • 4
  • +1
Mmanishjha-04
v1.0.3
10,609
a year ago
styledictionary/4/type

## What Changed This codemod introduces strict typing across Style Dictionary, with `.d.ts` files published alongside each file. Importing from Style Dictionary’s entrypoints now automatically provides implicit types, offering significant improvements for TypeScript users with more accurate and fewer `any` types. Specific type interfaces can still be imported separately from the `style-dictionary/types` entrypoint if needed. ## Before ```jsx import StyleDictionary from 'style-dictionary'; declare type DesignToken = StyleDictionary.DesignToken; declare type Transform = StyleDictionary.Transform; ``` ## After ```jsx import type { DesignToken, Transform } from 'style-dictionary/types'; ```

  • styledictionary
  • 4
  • +1
335c4n0r
v1.0.3
941
a year 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.