An open API service indexing awesome lists of open source software.

https://github.com/fbukevin/file-template

File template generator with Node.js.
https://github.com/fbukevin/file-template

Last synced: about 2 months ago
JSON representation

File template generator with Node.js.

Awesome Lists containing this project

README

          

#File Template
When you are going to quickly create a file for testing or practicing a programming language, you might need to create it and write down some code manually. Some codes of most of your same language programs may appear again and again and again...., blablabla.

For example, if you're just a newbie studying C programming language. The most codes in your practice files might contains such like this:
```c
#include
#include

int main(int argc, char* argv[])
{
printf("Hello World!");
return 0;
}
```

Haha, this is not a hello world generator. Alright, `printf("");`, instead, is the most used. Anyway, if you need to retype this snippet every time, it implies that it should be automatically generated. That's what this program does. It deal with most **common** part of each language.

#Install
`npm insall -g file-template`

#Usage
`ftemplate . [options]`

Current support programming languages:
* HTML
* Java
* C
* C++
* C#

###Options:

* `--help`
* create without
* `--no-script`: create without `` tag
* `--no-link`: create without `<link>` tag
* with standard
* `-html4`: use html doctype before HTML5

##example

* Create an HTML: `ftemplate index.html`

```html
<!DOCTYPE>
<html>
<head>
<tilte></title>
<script >