codemod 1.0.10 codemod: ^1.0.10 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
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
codemod: ^1.0.10
Alternatively, your editor might support dart 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';