{"id":15650585,"url":"https://github.com/linusu/gitignore-to-dockerignore","last_synced_at":"2025-09-13T07:40:44.006Z","repository":{"id":47618304,"uuid":"143889396","full_name":"LinusU/gitignore-to-dockerignore","owner":"LinusU","description":"Generate an equivalent `.dockerignore` file from an existing `.gitignore` file","archived":false,"fork":false,"pushed_at":"2023-12-06T16:59:31.000Z","size":33,"stargazers_count":35,"open_issues_count":4,"forks_count":3,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-07-04T09:06:20.894Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/LinusU.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":"2018-08-07T15:00:02.000Z","updated_at":"2025-06-26T06:35:11.000Z","dependencies_parsed_at":"2024-06-11T19:08:22.106Z","dependency_job_id":null,"html_url":"https://github.com/LinusU/gitignore-to-dockerignore","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/LinusU/gitignore-to-dockerignore","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinusU%2Fgitignore-to-dockerignore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinusU%2Fgitignore-to-dockerignore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinusU%2Fgitignore-to-dockerignore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinusU%2Fgitignore-to-dockerignore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LinusU","download_url":"https://codeload.github.com/LinusU/gitignore-to-dockerignore/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinusU%2Fgitignore-to-dockerignore/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263480867,"owners_count":23473164,"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-03T12:35:09.626Z","updated_at":"2025-07-04T09:06:21.304Z","avatar_url":"https://github.com/LinusU.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gitignore → Dockerignore\n\nGenerate an equivalent `.dockerignore` file from existing `.gitignore` files.\n\nNew in 3.0, handles multiple `.gitignore` files in a directory and its subdirectories, just like Git does.\n\n## Installation\n\n```sh\nnpm install --save gitignore-to-dockerignore\n```\n\n## Usage\n\n### API\n\n#### Directory input\n\n```js\nimport generateDockerignore from 'gitignore-to-dockerignore'\n\nconsole.log(await generateDockerignore(process.cwd()))\n// .git/\n// node_modules/\n// **/*.log\n//\n// # From tests/.gitignore\n// tests/**/*.log\n```\n\n#### String input\n\n```js\nimport { convertToDockerignore } from 'gitignore-to-dockerignore'\n\nconst input = `\n/node_modules/\n*.log\n`\n\nconsole.log(convertToDockerignore(input))\n// .git/\n// node_modules/\n// **/*.log\n```\n\n### CLI\n\n```sh\n# Write a single .dockerignore file from .gitignore files in the current directory and subdirectories\ngitignore-to-dockerignore\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinusu%2Fgitignore-to-dockerignore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinusu%2Fgitignore-to-dockerignore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinusu%2Fgitignore-to-dockerignore/lists"}