user8690818
user8690818

Reputation:

Create big files with node.js

I'm completely new to Node.js so I have I question.

I'm writing a simple cli app that will create some files and directories.

For example if user inputs :

name-of-my-app init

It will create index.html with some html markup with indentation(like !DOCTYPE, head, body etc.)

Maybe I can create a file and then just move the ready file from my node_modules/my-app directory to the directory of the user(__dirname)?

The idea of my cli app is to init new projects with some .css and .js files. Also I want to use it globally(npm install -g my-app)

Hope you'll understand what I mean :)

Any advices?

Thank you very much for spending your precious time with my problem!

Upvotes: 0

Views: 167

Answers (1)

Stretch0
Stretch0

Reputation: 9251

You should check out Yeoman. It Might be more suited to what you want.

Upvotes: 2

Related Questions