Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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.");
});
 
PREVIOUS NEXT
Tagged: #directory #javascript
ADD COMMENT
Topic
Name
4+9 =