Skip to content
Advertisement

How can i create a directory using Node.js?

how can i write the name and the path of my directory that i will to create in the same node command, like this and remove the path in my script >

node ./stack/create.js ./path/folderName

i´m trying to create a directory with this script but i want to remove const path in my script and set the path and name when i will to ran my script like this node ./stack/create.js ./path/folderName

my script

JavaScript

i´m trying to create a directory with this script but i want to remove const path in my script and set the path and name when i will to ran my script like this node ./stack/create.js ./path/folderName

Advertisement

Answer

Try this way :

JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement