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.Buffer → Buffer
- Deno.copy → copy
- Deno.iter → iterateReader
- Deno.iterSync → iterateReaderSync
- Deno.writeAllSync → writeAllSync
- Deno.writeAll → writeAll
- Deno.readAllSync → readAllSync
- Deno.readAll → readAll