8 Program to Create and Delete Directory in NodeJS Atharva Satyendra Agrawal August 12, 2020 Atharva Satyendra Agrawal Program: var fs = require('fs'); fs.mkdirSync('demo'); console.log('Demo Directory Create'); fs.rmdirSync('demo'); console.log('Demo Directory Delete'); Output: Tweet Share Share Share Related Post