morph-cli 0.1.0

AST-based codebase migration and codemod tool for JavaScript and TypeScript projects.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
pub mod commonjs_to_esm;
pub mod express_to_fastify;
pub mod js_to_ts;
pub mod react_class_to_hooks;

use crate::core::registry::RecipeRegistry;

pub fn register_all(registry: &mut RecipeRegistry) {
    registry.register(commonjs_to_esm::CommonJsToEsmRecipe);
    registry.register(express_to_fastify::ExpressToFastifyRecipe::new());
    registry.register(js_to_ts::JsToTsRecipe::conservative());
    registry.register(react_class_to_hooks::ReactClassToHooksRecipe);
}