Answers for "how to make directory in javascript"

1

how to make directory in javascript

const fs = require('fs');

// directory path
const dir = './views';

// create new directory
fs.mkdir(dir, (err) => {
    if (err) {
        throw err;
    }
    console.log("Directory is created.");
});
Posted by: Guest on June-01-2021

Code answers related to "how to make directory in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language