Skip to content

Latest commit

 

History

History
61 lines (40 loc) · 1.04 KB

readme.md

File metadata and controls

61 lines (40 loc) · 1.04 KB

makefilez 📁📂🗃🗄

Another simple way to make multiple file(s) with Node.js

🛠️ makefilez provides an easy method for creating multiple files using Node.js.

Installation

using npm

npm install makefilez

Usage

1.

const makefilez = require("makefilez");

// 📝 NOTE: Defaults to 'About.txt' after creation

makefilez(["fizz", "buzz"], "./public/pages/");

2.

// 📝 NOTE: Now each file has a specified extension
makefilez(["fizz.js", "buzz.py"], "./public/pages/");

3.

// 📝 NOTE: Now one file has a specified extension, and the rest default to a .py extension
makefilez(["fizz.js", "buzz"], "./public/pages/", { ext: ".py" });

4.

// 📝 NOTE: Single file created and defaults to a .txt file extension
makefilez("fizz", "./public/pages/");

5.

// 📝 NOTE: Single file created and has a .js file extension
makefilez("fizz.js", "./public/pages/");

6.

// 📝 NOTE:
makefilez("fizz.js", "./public/pages/", { ext: ".py" });