Handle Breaking Changes Gracefully
A collection of automated migration recipes (codemods) for Node.js userland code. Update your codebase to adopt new features and handle deprecations with confidence.
Quick Start
Get up and running with codemods in just a few steps
Commit your changes
Run a migration recipe
<recipe> with the name of the recipe you want to run.Example output
Example output
Review and test
Explore by Category
Find the right migration recipe for your use case
Buffer APIs
File System
Crypto APIs
Utilities
TypeScript
Process APIs
Key Features
Why use Node.js Userland Migrations
AST-Based Transformations
Powered by ast-grep and jssg API for accurate, safe code transformations that understand your code structure.
Automatic Dependency Management
Automatically removes deprecated packages from package.json when migrating to built-in Node.js APIs.
CommonJS & ESM Support
Works with both CommonJS (require) and ES modules (import), ensuring compatibility with your module system.
28 Migration Recipes
Comprehensive coverage of Node.js breaking changes across buffer, crypto, fs, util, and more.
Resources
Core Concepts
Developer Guide
API Reference
GitHub Repository
Ready to Get Started?
Run your first migration in minutes and keep your Node.js codebase up to date with the latest best practices.
Get Started