L

deno-import-stl-functions

How to Use
Run this codemod on your codebase using one of the following commands

The easiest way to run this codemod without installing anything globally:

Documentation

This codemod updates removed Deno function calls in Deno v2 to their new
equivalents from the standard library It also automatically adds the necessary
import statements from the appropriate modules.

Before

ts

After

ts

The following Deno functions are replaced:

  • Deno.BufferBuffer
  • Deno.copycopy
  • Deno.iteriterateReader
  • Deno.iterSynciterateReaderSync
  • Deno.writeAllSyncwriteAllSync
  • Deno.writeAllwriteAll
  • Deno.readAllSyncreadAllSync
  • Deno.readAllreadAll

Ready to contribute?

Build your own codemod and share it with the community.