Search packages, repositories and app categories

Package detailsv1.2.2

codemod

Write and run automated code modifications on a codebase. Primarily geared towards updating and refactoring Dart code, but can modify any files.

AndroidiOSmacOSWindowsLinux
30-day downloads
2.2K
Likes
37
Pub points
125

Install package

flutter pub add codemod

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Codemod is a developer tool for automating code transformations across a codebase, specifically designed for Dart but capable of modifying any file types. It enables efficient refactoring and large-scale updates by applying predefined scripts to source files. Ideal for migrating APIs, updating syntax, or enforcing coding standards across projects. The tool integrates seamlessly with Flutter and Dart workflows, supporting all major platforms including Android, iOS, macOS, Windows, and Linux. Its open-source nature allows customization and community contributions via GitHub.

Use cases

  • Automated API migrations
  • Large-scale code refactoring
  • Enforcing coding standards
  • Updating deprecated syntax
  • Batch file transformations

Key features

  • Supports Dart and general file modifications
  • Scriptable code transformations
  • Cross-platform compatibility
  • Open-source with GitHub integration
  • Seamless Flutter/Dart workflow integration

Suitable for

  • Teams managing large Dart codebases
  • Developers performing major refactorings
  • CI/CD pipelines requiring automated code changes
  • Tooling maintainers building code migration utilities

Considerations

  • Requires understanding of transformation scripts
  • Potential risk of unintended changes without testing
  • Best used with version control
  • Limited built-in UI for script debugging
  • Depends on accurate script logic for reliable results

Categories

Dependencies

Dependency list 11 items

Projects using this package

No data available yet.