0.0.3 • Published 1 year ago

makefilez v0.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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" });
0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago