{"id":19140716,"url":"https://github.com/tijn/xdg_base_directory","last_synced_at":"2025-05-06T23:16:57.435Z","repository":{"id":66758523,"uuid":"108688435","full_name":"tijn/xdg_base_directory","owner":"tijn","description":"A Crystal implementation of the XDG Base Directory specs","archived":false,"fork":false,"pushed_at":"2024-05-06T07:59:19.000Z","size":34,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-06T23:16:49.423Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Crystal","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tijn.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,"zenodo":null}},"created_at":"2017-10-28T22:21:59.000Z","updated_at":"2025-01-12T08:16:49.000Z","dependencies_parsed_at":"2024-03-01T16:31:11.015Z","dependency_job_id":"a3185077-526c-4f73-b7b6-d72ac28acb66","html_url":"https://github.com/tijn/xdg_base_directory","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tijn%2Fxdg_base_directory","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tijn%2Fxdg_base_directory/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tijn%2Fxdg_base_directory/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tijn%2Fxdg_base_directory/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tijn","download_url":"https://codeload.github.com/tijn/xdg_base_directory/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252782835,"owners_count":21803410,"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":[],"created_at":"2024-11-09T07:18:31.709Z","updated_at":"2025-05-06T23:16:57.413Z","avatar_url":"https://github.com/tijn.png","language":"Crystal","funding_links":[],"categories":[],"sub_categories":[],"readme":"# xdg_base_directory\n\nAn implementation of the XDG Base Directory specs in Crystal-lang\n\n## Installation\n\nAdd this to your application's `shard.yml`:\n\n```yaml\ndependencies:\n  xdg_base_directory:\n    github: tijn/xdg_base_directory\n```\n\n## Usage\n\n```crystal\nrequire \"xdg_base_directory\"\n\nxdg_dirs = XdgBaseDirectory.app_directories(\"my-awesome-app\")\n\nsettings = xdg_dirs.config.read_file(\"settings.ini\")\nxdg_dirs.config.write_file(\"settings.ini.backup\", setttings)\n\n# open the cache directory\nxdg_dirs.cache.to_dir # returns a Dir instance\n\n# open the runtime directory\nxdg_dirs.runtime_dir.to_dir # returns a Dir instance\n```\n\n## Contributing\n\n1. Fork it ( https://github.com/tijn/xdg_base_directory/fork )\n2. Create your feature branch (git checkout -b my-new-feature)\n3. Commit your changes (git commit -am 'Add some feature')\n4. Push to the branch (git push origin my-new-feature)\n5. Create a new Pull Request\n\n## Contributors\n\n- [tijn](https://github.com/tijn) Tijn Schuurmans - creator, maintainer\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftijn%2Fxdg_base_directory","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftijn%2Fxdg_base_directory","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftijn%2Fxdg_base_directory/lists"}