fs promises create directory if not exist code example
Example: how to create a folder using fs in node js
//Include fs module
const fs = require('fs');
const dir = './dir'
fs.mkdir(dir);
//Include fs module
const fs = require('fs');
const dir = './dir'
fs.mkdir(dir);