alexadam / folders-to-script

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

folders-to-script

This is a simple NodeJS app that takes a source folder as input and generates a Bash script. The Bash script has all the files' content and the folders' structure in the source folder and it can recreate them when executed.

More about it here: https://alexadam.dev/blog/folder-structure-script.html

How to us it:

node index.js test

mkdir some-folder
cd some-folder

sh result.sh

About


Languages

Language:Shell 78.3%Language:JavaScript 21.7%