Registry
E

e18e/@e18e/data-view-byte-length

No description available

e18e25 executions

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

data-view-byte-length Codemod

Introduction

This codemod replaces instances of the data-view-byte-length package with the built-in DataView.byteLength property. The goal is to eliminate unnecessary dependencies, thereby reducing the bundle size and improving the performance of the codebase.

Before

javascript
import byteLength from 'data-view-byte-length';

const buffer = new ArrayBuffer(8);
const view = new DataView(buffer);
const length = byteLength(view);

After

javascript
const buffer = new ArrayBuffer(8);
const view = new DataView(buffer);
const length = view.byteLength;

Ready to evolve your codebase?

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