codemod 1.2.0 copy "codemod: ^1.2.0" to clipboard
codemod: ^1.2.0 copied to clipboard

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

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add codemod
copied to clipboard

With Flutter:

 $ flutter pub add codemod
copied to clipboard

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  codemod: ^1.2.0
copied to clipboard

Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:codemod/codemod.dart';
copied to clipboard
29
likes
120
points
24.2k
downloads

Publisher

verified publisherworkiva.com

Weekly Downloads

2024.09.19 - 2025.04.03

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

Repository (GitHub)
View/report issues
Contributing

Documentation

API reference

License

unknown (license)

Dependencies

analyzer, args, glob, io, logging, path, quiver, source_span, stack_trace, test, test_descriptor

More

Packages that depend on codemod