{"id":16446441,"url":"https://github.com/fbukevin/file-template","last_synced_at":"2026-05-12T21:04:44.180Z","repository":{"id":26584795,"uuid":"30039335","full_name":"fbukevin/file-template","owner":"fbukevin","description":"File template generator with Node.js.","archived":false,"fork":false,"pushed_at":"2015-02-14T16:06:38.000Z","size":144,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-22T11:26:55.520Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/file-template","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fbukevin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-01-29T20:20:06.000Z","updated_at":"2022-02-19T19:44:44.000Z","dependencies_parsed_at":"2022-08-31T08:11:53.448Z","dependency_job_id":null,"html_url":"https://github.com/fbukevin/file-template","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fbukevin/file-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fbukevin%2Ffile-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fbukevin%2Ffile-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fbukevin%2Ffile-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fbukevin%2Ffile-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fbukevin","download_url":"https://codeload.github.com/fbukevin/file-template/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fbukevin%2Ffile-template/sbom","scorecard":{"id":394359,"data":{"date":"2025-08-11","repo":{"name":"github.com/fbukevin/file-template","commit":"ec285e396de6708a1c91b2c9eb7a614866e30ad2"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 1/20 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 1 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-18T18:36:42.087Z","repository_id":26584795,"created_at":"2025-08-18T18:36:42.087Z","updated_at":"2025-08-18T18:36:42.087Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32956860,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-12T09:19:52.626Z","status":"ssl_error","status_checked_at":"2026-05-12T09:17:33.438Z","response_time":102,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T09:47:34.328Z","updated_at":"2026-05-12T21:04:44.127Z","avatar_url":"https://github.com/fbukevin.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"#File Template\nWhen 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.\n\nFor example, if you're just a newbie studying C programming language. The most codes in your practice files might contains such like this:\n```c\n#include\u003cstdio.h\u003e\n#include\u003cstdlib.h\u003e\n\nint main(int argc, char* argv[])\n{\n\tprintf(\"Hello World!\");\n\treturn 0;\n}\n```\n\nHaha, 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.\n\n\n#Install\n`npm insall -g file-template`\n\n#Usage\n`ftemplate \u003cfilename\u003e.\u003cextension\u003e [options]`\n\nCurrent support programming languages: \n* HTML\n* Java\n* C\n* C++\n* C#\n\n###Options:\n\n* `--help`\n* create without\n\t* `--no-script`: create without `\u003cscript\u003e` tag\n\t* `--no-link`: create without `\u003clink\u003e` tag\n* with standard\n\t* `-html4`: use html doctype before HTML5\t\n\n##example\n\n* Create an HTML: `ftemplate index.html`\n\n\t```html\n\t\u003c!DOCTYPE\u003e\n\t\u003chtml\u003e\n\t\t\u003chead\u003e\n\t\t\t\u003ctilte\u003e\u003c/title\u003e\n\t\t\t\u003cscript \u003e\u003c/script\u003e \u003c!-- JavaScript Loader --\u003e\n\t\t\t\u003clink\u003e \u003c!-- CSS loader--\u003e\n\t\t\u003c/head\u003e\n\t\t\u003cbody\u003e\t\t\n\t\t\u003c/body\u003e\n\t\u003c/html\u003e\n\t```\n\n* Create a Java file: `ftemplate hello.java`\n\n\t```java\n\timport java.lang.*;\n\t\n\tclass hello{\n\t\tpublic static void main(String[] args){\n\t\t\n\t\t\tSystem.out.println(\"\");\n\t\t\t\n\t\t\treturn 0;\n\t\t}\n\t}\n\t```\n\n* Create an HTML with no `\u003cscript type=\"text/javascript\" src=\"\"\u003e\u003c/script\u003e` tag:\n\t\n\t`ftemplate index.html --no-script`\n\n#Test\nWe use two test drivers with Sinon and Mocha libraries to launch test, they should be installed as a global command in your computer in advanced:\n\n1. Mocha (recommend)\n \n\t1. `cd test`\n\t2. `mocha *_test.js`\t\n\n2. Karma with Mocha：\n\t\n\tYou can stay in the root directory and just use folllowing commands to skin a cat. We primitively created two karma.conf.js for Karma, so you should have installed public version of Chrome or Firefox OS. \n\t\n\t1. `karma start chrome.conf.js` \n\t2. `karma start firefox.conf.js`\n\n#Changelog\n\n2015/02/14 Add C# context. (by larrywhy)\n\n#Contribution\nWe are very welcome any feedback or new template provided. Please contact me with fbukevin@gmail.com. Or you can just clone this repository. Thanks for your courtesy. Hope you like this.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffbukevin%2Ffile-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffbukevin%2Ffile-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffbukevin%2Ffile-template/lists"}