{"id":17726992,"url":"https://github.com/fs02/gitignore-parser","last_synced_at":"2025-03-31T15:28:02.455Z","repository":{"id":210354802,"uuid":"726355949","full_name":"Fs02/gitignore-parser","owner":"Fs02","description":".gitignore parser library for kotlin","archived":false,"fork":false,"pushed_at":"2024-02-14T05:11:49.000Z","size":75,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-05-01T12:16:45.220Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Kotlin","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/Fs02.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}},"created_at":"2023-12-02T06:20:30.000Z","updated_at":"2023-12-02T07:04:49.000Z","dependencies_parsed_at":"2024-02-14T06:22:47.427Z","dependency_job_id":"4303cb48-7a15-408a-8e84-0ea11dc18306","html_url":"https://github.com/Fs02/gitignore-parser","commit_stats":null,"previous_names":["fs02/gitignore-parser"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fs02%2Fgitignore-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fs02%2Fgitignore-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fs02%2Fgitignore-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fs02%2Fgitignore-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Fs02","download_url":"https://codeload.github.com/Fs02/gitignore-parser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246489577,"owners_count":20785883,"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-10-25T17:22:24.329Z","updated_at":"2025-03-31T15:28:02.422Z","avatar_url":"https://github.com/Fs02.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gitignore-parser\n\n[![](https://jitpack.io/v/Fs02/gitignore-parser.svg)](https://jitpack.io/#Fs02/gitignore-parser)\n\nA spec-compliant gitignore parser for Kotlin/JVM.\n\nKotlin port from: https://github.com/mherrmann/gitignore_parser\n\n## Download\n\n```\nrepositories {\n    maven { url 'https://jitpack.io' }\n}\n\ndependencies {\n    implementation 'com.github.fs02:gitignore-parser:1.0.0'\n}\n```\n\n## Usage\n\nSuppose `/home/project/.gitignore` contains the following:\n\n```\n# Ignore Gradle project-specific cache directory\n.gradle\n\n# Ignore Gradle build output directory\nbuild\n```\n\nThen:\n\n```kotlin\nimport com.github.fs02.gitignore.parser.Gitignore\nimport java.nio.file.Path\n\nfun main() {\n    // Example usage\n    val gitignorePath = Path.of(\"/home/project/.gitignore\")\n    val gitignore = Gitignore(gitignorePath)\n    println(\"Is Ignored: ${gitignore.match(Path.of(\"/home/project/build\"))}\")\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffs02%2Fgitignore-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffs02%2Fgitignore-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffs02%2Fgitignore-parser/lists"}