Registry
E

e18e/@e18e/data-view-buffer

No description available

e18e35 executions

  • Legacy
  • e18e
  • module-replacement
Connect a repo
npx codemod @e18e/data-view-buffer

Data View Buffer Codemod

Introduction

This codemod replaces the usage of the data-view-buffer package with the built-in DataView API. It removes the import statement for the external dependency and transforms the corresponding instance property calls to directly utilize the native DataView feature, enhancing performance and reducing bundle size.

Before

javascript
import DataViewBuffer from 'data-view-buffer';

const buffer = DataViewBuffer(data);

After

javascript
const buffer = new DataView(data).buffer;

Ready to evolve your codebase?

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