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

With Flutter:

 $ flutter pub add codemod

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

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';
28
likes
130
pub points
80%
popularity

Publisher

verified publisherworkiva.com

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