Create a directory (folder) (mkdir)



examples/fs/create_directory.js
const fs = require('fs');

fs.mkdir(dirname, (err) => {

    if (err) {
        console.log(err);
    } else {
        console.log('Success');
    }
});