Ganti data dalam file di node.js

const fs = require("fs");
let text = fs.readFileSync("dele.txt", "utf-8");
text = text.replace("browser", "Rohan");
Noorulain Fatima