This guide will help you install and use the pandabook
package for bulk file and folder creation.
npm install pandabook
import pandabook from "pandabook";
// Path to the directory
const rootFolder = "../your-folder-name";
// Folders and files to create
const foldersAndFiles = [
{
folderName: "Folder1",
fileNames: ["file1", "file2"],
extension: ".txt",
},
{
folderName: "Folder2",
fileNames: ["file3", "file4"],
extension: ".md",
},
];
// Call the function
pandabook(foldersAndFiles, rootFolder);