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';
29
likes
120
points
23.5k
downloads

Publisher

verified publisherworkiva.com

Weekly Downloads

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

Repository (GitHub)
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