项目中如何使用require("buffer")

image
require没法用了
image
impoert也没用
请问现在如何对base64的文本进行转码?

npm包尚未支持(3.0正式版可能会上)

这都2024年了,已经是3.8了,然而。。。。