{"id":22930871,"url":"https://github.com/zewebdev1337/barrel-up","last_synced_at":"2026-05-05T12:32:49.257Z","repository":{"id":255386036,"uuid":"849061053","full_name":"zewebdev1337/barrel-up","owner":"zewebdev1337","description":"Put the binary where PATH can find it. Do whatever the fuck you want with the code, don't ask me, don't ask for support, just fork it and modify it.","archived":false,"fork":false,"pushed_at":"2024-10-17T04:01:50.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-01T17:24:55.825Z","etag":null,"topics":["developer-tools","javascript","typescript"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"wtfpl","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zewebdev1337.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-28T22:52:38.000Z","updated_at":"2024-10-17T04:13:38.000Z","dependencies_parsed_at":"2024-08-29T17:46:51.814Z","dependency_job_id":"1380b420-a1b0-4b15-abdb-1961bd127a97","html_url":"https://github.com/zewebdev1337/barrel-up","commit_stats":null,"previous_names":["zewebdev1337/barrel-up"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/zewebdev1337/barrel-up","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zewebdev1337%2Fbarrel-up","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zewebdev1337%2Fbarrel-up/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zewebdev1337%2Fbarrel-up/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zewebdev1337%2Fbarrel-up/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zewebdev1337","download_url":"https://codeload.github.com/zewebdev1337/barrel-up/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zewebdev1337%2Fbarrel-up/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32649554,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-05T11:29:49.557Z","status":"ssl_error","status_checked_at":"2026-05-05T11:29:48.587Z","response_time":54,"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":["developer-tools","javascript","typescript"],"created_at":"2024-12-14T10:30:29.747Z","updated_at":"2026-05-05T12:32:49.225Z","avatar_url":"https://github.com/zewebdev1337.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# barrel up\n\nThis Go program is designed for to automate the creation of index files that export from subdirectories within the `src` folder of a JSX/TSX project.\n\n## Features\n\n- Walks through the `src` directory and its subdirectories\n- Creates or updates `index.ts` files in each subdirectory\n- Only exports files that actually contain export statements\n- Avoids creating duplicate exports\n- Supports `.tsx`, `.jsx`, `.ts`, and `.js` files\n\n## Install/Usage\n\n- Download the binary from releases and run it `barrel-up` or get the source and compile it `go build`/run it `go run main.go`\n\n1. Navigate to the project's root directory in the terminal\n2. Run the program:\n   ```\n   go run path/to/indexer.go\n   ```\n   or\n   ```\n   barrel-up\n   ```\n## Notes\n\n- It assumes it's run from the project root directory\n- It only processes subdirectories within `src`, not the top-level `src` directory\n- Existing `index.ts` files will be overwritten\n- The program doesn't handle commented-out exports\n\n## Customization\n\nBecause I use TS for most projects, some adjustments could be needed if the specific project structure differs. Key areas to consider:\n- File extensions (in the `createIndexFile` function)\n- Export statement format (in the `hasExports` function) \n- Index file naming (currently set to `index.ts`)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzewebdev1337%2Fbarrel-up","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzewebdev1337%2Fbarrel-up","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzewebdev1337%2Fbarrel-up/lists"}