Skip to content

hlymrk/makefilez

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

makefilez

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

About

make file(s) with nodejs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published