🛠️ makefilez provides an easy method for creating multiple files using Node.js.
using npm
npm install makefilez
const makefilez = require("makefilez");
// 📝 NOTE: Defaults to 'About.txt' after creation
makefilez(["fizz", "buzz"], "./public/pages/");
// 📝 NOTE: Now each file has a specified extension
makefilez(["fizz.js", "buzz.py"], "./public/pages/");
// 📝 NOTE: Now one file has a specified extension, and the rest default to a .py extension
makefilez(["fizz.js", "buzz"], "./public/pages/", { ext: ".py" });
// 📝 NOTE: Single file created and defaults to a .txt file extension
makefilez("fizz", "./public/pages/");
// 📝 NOTE: Single file created and has a .js file extension
makefilez("fizz.js", "./public/pages/");
// 📝 NOTE:
makefilez("fizz.js", "./public/pages/", { ext: ".py" });