Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

node.js fs create directory

import fs from "fs";
const fsp = fs.promises;

const makeDir = async () => {
    try {
        await fsp.mkdir('blogPost')
    } catch (err) {
        console.log(err);
    }
}

makeDir()
 
PREVIOUS NEXT
Tagged: #fs #create #directory
ADD COMMENT
Topic
Name
7+7 =