{"id":21013205,"url":"https://github.com/akameco/touch-alt","last_synced_at":"2025-05-15T04:34:06.122Z","repository":{"id":57378306,"uuid":"91113668","full_name":"akameco/touch-alt","owner":"akameco","description":"Create from a template instead of a new file","archived":false,"fork":false,"pushed_at":"2018-10-11T17:10:26.000Z","size":268,"stargazers_count":10,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-03T03:51:09.688Z","etag":null,"topics":["cli","cli-app","cp","cp-file","touch","touch-alt"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/akameco.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-05-12T17:15:27.000Z","updated_at":"2019-07-02T06:43:05.000Z","dependencies_parsed_at":"2022-09-26T16:41:30.329Z","dependency_job_id":null,"html_url":"https://github.com/akameco/touch-alt","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akameco%2Ftouch-alt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akameco%2Ftouch-alt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akameco%2Ftouch-alt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akameco%2Ftouch-alt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/akameco","download_url":"https://codeload.github.com/akameco/touch-alt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254274669,"owners_count":22043565,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["cli","cli-app","cp","cp-file","touch","touch-alt"],"created_at":"2024-11-19T09:40:55.308Z","updated_at":"2025-05-15T04:34:05.737Z","avatar_url":"https://github.com/akameco.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [![touch-alt](media/logo.png)](https://github.com/akameco/touch-alt)\n\n[![Build Status](https://travis-ci.org/akameco/touch-alt.svg?branch=master)](https://travis-ci.org/akameco/touch-alt)\n[![All Contributors](https://img.shields.io/badge/all_contributors-2-orange.svg?style=flat-square)](#contributors)\n\n\u003e Create from a template instead of a new file\n\n## Install\n\n```\n$ npm install --global touch-alt\n```\n\n## Demo\n\n![demo](./media/demo.gif)\n\n## Usage\n\n```\n$ touch-alt --help\n\n  Create from a template instead of a new file\n\n  Usage\n  $ touch-alt \u003csource\u003e\n  $ touch-alt --add \u003csource\u003e\n\n  Options\n  -a, --add         Create new template file\n  -o, --overwrite   Overwrite by template\n\n  Example\n  $ touch-alt .editorconfig\n```\n\n## Example\n\n### Add new template file\n\n```\n$ cat .editorconfig\nroot = true\n\n[*]\nindent_style = space\nindent_size = 2\nend_of_line = lf\ncharset = utf-8\ntrim_trailing_whitespace = true\ninsert_final_newline = true\n$ touch-alt --add .editorconfig\n```\n\n### Usage\n\n```\n# Use touch\n$ touch .editorconfig\n$ cat .editorconfig\n\n$ rm .editorconfig\n\n# Use touch-alt\n$ touch-alt .editorconfig\n$ cat .editorconfig\nroot = true\n\n[*]\nindent_style = space\nindent_size = 2\nend_of_line = lf\ncharset = utf-8\ntrim_trailing_whitespace = true\ninsert_final_newline = true\n```\n\n## Tip\n\nAdd `alias touch=touch-alt` to your .zshrc/.bashrc to reduce typing \u0026 create file easily.\n\n## Config\n\nDefault: `~/.touch-alt`\n\n```sh\n$ ls ~/.touch-alt\nISSUE_TEMPLATE.md        index.js                 readme.md\n```\n\n## Contributors\n\nThanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds/all-contributors#emoji-key)):\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --\u003e\n\n\u003c!-- prettier-ignore --\u003e\n| [\u003cimg src=\"https://avatars2.githubusercontent.com/u/4002137?v=4\" width=\"100px;\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eakameco\u003c/b\u003e\u003c/sub\u003e](http://akameco.github.io)\u003cbr /\u003e[💻](https://github.com/akameco/touch-alt/commits?author=akameco \"Code\") [📖](https://github.com/akameco/touch-alt/commits?author=akameco \"Documentation\") [⚠️](https://github.com/akameco/touch-alt/commits?author=akameco \"Tests\") [🚇](#infra-akameco \"Infrastructure (Hosting, Build-Tools, etc)\") | [\u003cimg src=\"https://avatars2.githubusercontent.com/u/5501268?v=4\" width=\"100px;\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eryota-murakami\u0010\u003c/b\u003e\u003c/sub\u003e](http://ryota-murakami.github.io/)\u003cbr /\u003e[🚇](#infra-ryota-murakami \"Infrastructure (Hosting, Build-Tools, etc)\") |\n| :---: | :---: |\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:END --\u003e\n\nThis project follows the [all-contributors](https://github.com/kentcdodds/all-contributors) specification. Contributions of any kind welcome!\n\n## License\n\nMIT © [akameco](http://akameco.github.io)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakameco%2Ftouch-alt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fakameco%2Ftouch-alt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakameco%2Ftouch-alt/lists"}