Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to create a folder in node js

const fs = require("fs");

if (!fs.existsSync(dirName)) fs.mkdirSync(dirName, { recursive: true });
 
PREVIOUS NEXT
Tagged: #create #folder #node #js
ADD COMMENT
Topic
Name
2+4 =