Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Create a directory (folder) (mkdir)

  • mkdir
const fs = require('fs');

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

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