Zapisz plik do systemu operacyjnego z NodeJS

fs.writeFileSync('./data.json', JSON.stringify(obj, null, 2) , 'utf-8');
Noorullah Ahmadzai