{"id":18715566,"url":"https://github.com/rawnly/btt-cli","last_synced_at":"2026-04-27T20:31:11.638Z","repository":{"id":78840599,"uuid":"90459825","full_name":"rawnly/btt-cli","owner":"rawnly","description":"Like a mix about \"mkdir -p\" and \"touch\" but crossplatform.","archived":false,"fork":false,"pushed_at":"2017-05-06T12:37:55.000Z","size":179,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-19T11:46:02.348Z","etag":null,"topics":["btt-cli","commandline","crossplatform","node","nodejs"],"latest_commit_sha":null,"homepage":"https://rawnly.com","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/rawnly.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-05-06T11:59:03.000Z","updated_at":"2020-01-15T21:18:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"9b6736b8-94bf-42ed-b66b-a8d9b46e1387","html_url":"https://github.com/rawnly/btt-cli","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/rawnly/btt-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rawnly%2Fbtt-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rawnly%2Fbtt-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rawnly%2Fbtt-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rawnly%2Fbtt-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rawnly","download_url":"https://codeload.github.com/rawnly/btt-cli/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rawnly%2Fbtt-cli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32354563,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-27T20:07:02.737Z","status":"ssl_error","status_checked_at":"2026-04-27T20:07:00.910Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["btt-cli","commandline","crossplatform","node","nodejs"],"created_at":"2024-11-07T13:09:14.864Z","updated_at":"2026-04-27T20:31:11.617Z","avatar_url":"https://github.com/rawnly.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BTT CLI\n\n![img](https://placehold.it/1920x1080?text=Screenshot+Soon)\n\u003e Better \"touch\" command.\n\n## Installation\nTo install **btt-cli** be sure to have installed **npm** or **yarn**.\n```bash\n  $ node --version\n```\n\nIf no errors let's install **btt-cli** with the following comand:\n\n```bash\n  $ npm install btt-cli --global\n\n  # or \"shorter flags\"\n  $ npm i -g btt-cli\n\n  # or with YARN\n  $ yarn global add btt-cli\n```\n\n## How  \n```bash\n  $ btt [path]/\u003cfilename\u003e [...content]\n```\n\n## Why ?\n\u003e Why use **btt-cli** instead the traditional `touch filename` or the classic `echo \u003e filename`?\n\nBecause **btt** provides to create the path if it doesn't exitst yet and it **doesn't overwrite** files.\n\n\n\u003cbr\u003e\u003cbr\u003e\n\n**Example**:\n```bash\n  $ touch myCoolProject/www/index.html\n  # Now if the path 'myCoolProject/www' doesn't exists \"touch\" will return error.\n\n  $ echo \u003e\u003e myCoolProject/www/index.html \"\u003ch1\u003eTitle\u003c/h1\u003e\"\n  # This will return the same error\n```\n\n\u003cbr\u003e\u003cbr\u003e\n\nBut here comes _this commandline_, **btt** will create the path and with btt you can also write into files as like `echo`, is like a mix of `echo` and `mdkir -p` commands.\n\n\u003cbr\u003e\u003cbr\u003e\n\n**Example with btt:**\n```bash\n  $ btt myCoolProject/www/index.html \"\u003ch1\u003e Title \u003c/h1\u003e\"\n\n  # You can also write without “”\n\n  $ btt Note/myFirstNote.txt Hey, this is my note!\n  # This will write a file with\n  # the phrase \"Hey, this is my note!\".\n```\n\n## Platforms\nThis `commandline` should work over all platforms but unfortunately right now i can't test it over all them.\n### Tested on\n  - [x] macOS Sierra [10.12.13]\n  - [ ] Linux systems\n  - [ ] Windows systems\n\n\u003cbr\u003e\u003cbr\u003e\n\u003cbr\u003e\u003cbr\u003e\n\n\n\u003cp align=\"center\"\u003eWritten in \u003cspan class=\"emoji emoji-heart\"\u003e❤️\u003c/span\u003e with \u003ca href=\"https://nodejs.org/en/\"\u003e\u003ccode\u003eNodeJS\u003c/code\u003e\u003c/a\u003e \u0026amp; \u003ca href=\"https://github.com/atom/atom\"\u003e\u003ccode\u003eAtom Text Editor\u003c/code\u003e\u003c/a\u003e by \u003ca href=\"https://rawnly.com\"\u003e@Rawnly\u003c/a\u003e\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frawnly%2Fbtt-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frawnly%2Fbtt-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frawnly%2Fbtt-cli/lists"}