E

e18e/@e18e/md5

No description available

e18e38 executions

  • Legacy
  • e18e
  • module-replacement
Connect a repo
npx codemod @e18e/md5

md5 Codemod

Introduction

This codemod replaces the usage of the md5 npm module with the built-in crypto module from Node.js. It updates the import statements and transforms the function calls to utilize the more efficient crypto.createHash('md5').update().digest('hex') syntax, thereby reducing external dependencies and enhancing performance.

Before

javascript
import md5 from 'md5';

const hash = md5(data);

After

javascript
import { createHash } from 'crypto';

const hash = createHash('md5').update(data).digest('hex');

Ready to evolve your codebase?

Build tailored, compiler-aware skills to assess, plan, and automate complex codebase changes.