const docBuffer = Buffer.from(content[1].trim(), 'base64');
const stream = new Readable();
const writeStream = createWriteStream(
process.cwd()+'/file/'+name,
);
stream.push(docBuffer);
stream.push(null);
stream.pipe(writeStream);
const filePath = path.join(process.cwd(), "file", name)
fs.writeFile(filePath, base64, "base64", (err) => {
if (err) console.log(err)
})