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.
- Host: GitHub
- URL: https://github.com/fbukevin/file-template
- Owner: fbukevin
- Created: 2015-01-29T20:20:06.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-02-14T16:06:38.000Z (over 11 years ago)
- Last Synced: 2025-12-22T11:26:55.520Z (6 months ago)
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/file-template
- Size: 141 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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 >