0 points

Make Directories in NodeJS


dashboard

Wed Nov 04 2020 18:12:52 GMT+0000 (UTC)

Posted by @narro #javascript #nodejs

const fs = require('fs');
const path = require('path');
const dirPath = path.join(__dirname, '/pictures');

fs.mkdirSync(dirPath);
content_copy Copy

https://www.digitalocean.com/community/tutorials/nodejs-how-to-use__dirname