Nnodejs

nodejs/buffer-atob-btoa

Migrates usage of the legacy APIs `buffer.atob()` and `buffer.btoa()` to the current recommended approaches

transformationmigrationbuffers
Public
0 downloads
1 stars
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

Migrate legacy buffer.atob() and buffer.btoa() APIs

Migrates usage of the legacy APIs buffer.atob() and buffer.btoa() to the current recommended approaches.

Example

Migrating buffer.atob(data)

Before:

js

After:

js

Migrating buffer.btoa(data)

Before:

js

After:

js

REFS

Ready to contribute?

Build your own codemod and share it with the community.