{"id":16314915,"url":"https://github.com/cebe/indent","last_synced_at":"2025-03-20T22:30:31.966Z","repository":{"id":16064691,"uuid":"18808980","full_name":"cebe/indent","owner":"cebe","description":"A small tool to convert text file indentation","archived":false,"fork":false,"pushed_at":"2019-12-05T09:04:04.000Z","size":11,"stargazers_count":17,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-11T21:55:49.904Z","etag":null,"topics":["code-style","hacktoberfest","indentation"],"latest_commit_sha":null,"homepage":"","language":"PHP","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/cebe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-04-15T17:26:42.000Z","updated_at":"2023-05-01T11:19:36.000Z","dependencies_parsed_at":"2022-08-31T13:10:50.645Z","dependency_job_id":null,"html_url":"https://github.com/cebe/indent","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cebe%2Findent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cebe%2Findent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cebe%2Findent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cebe%2Findent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cebe","download_url":"https://codeload.github.com/cebe/indent/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244085005,"owners_count":20395523,"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":["code-style","hacktoberfest","indentation"],"created_at":"2024-10-10T21:55:36.402Z","updated_at":"2025-03-20T22:30:31.415Z","avatar_url":"https://github.com/cebe.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"indent\n======\n\nA small tool to convert (or enforce) text file indentation. Tabs to spaces or spaces to tabs.\n\nInstallation\n------------\n\nInstall via [composer](https://packagist.org/packages/cebe/indent) or just clone the repo.\n\n### Global installation\n\nInstall it globally using:\n\n    composer global require cebe/indent\n\nMake sure your composer directory (`$HOME/.composer/vendor/bin`) is in your `PATH`.    \n\nUsage\n-----\n\n    indent [--tabs|--spaces] [-r [--pattern=...]] [files or directories...]\n\n    --tabs       convert all indentation to tabs. Assuming 4 spaces tab length.\n    --spaces     convert all indentation to spaces.\n\n    -r           recursively go over all directories given as argument and convert\n                 files that match --pattern.\n\n    --pattern    the pattern to match files for when using -r. Defaults to '*.php'.\n\n    --tabstop=N  define number of spaces N to replace a tab with. Defaults to 4.\n\n    --help       shows this usage information.\n\n    If no file is specified input will be read from STDIN.\n\nExamples\n--------\n\nConvert `myfile.php` to tabs:\n\n    indent --tabs myfile.php\n\nConvert all `.php`-files and the `README.md` in current dir to spaces:\n\n    indent --spaces *.php README.md\n\nConvert all `.php`-files in `dir` to tabs (recursively):\n\n    indent --tabs -r dir\n\nConvert all `.md`-files in dir to spaces (recursively):\n\n    indent --spaces --pattern=*.md -r dir\n\nConvert STDIN, which is the content of `myfile.php` to spaces and print the result to STDOUT:\n\n    cat myfile.php | ./indent --spaces\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcebe%2Findent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcebe%2Findent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcebe%2Findent/lists"}