{"id":50384599,"url":"https://github.com/initdc/embed.cr","last_synced_at":"2026-05-30T14:01:38.314Z","repository":{"id":331107480,"uuid":"1125200147","full_name":"initdc/embed.cr","owner":"initdc","description":"Embed file or dir to your project.","archived":false,"fork":false,"pushed_at":"2025-12-30T20:10:33.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"dev","last_synced_at":"2026-01-03T06:38:54.799Z","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":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/initdc.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-30T10:05:06.000Z","updated_at":"2025-12-30T20:10:37.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/initdc/embed.cr","commit_stats":null,"previous_names":["initdc/embed.cr"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/initdc/embed.cr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/initdc%2Fembed.cr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/initdc%2Fembed.cr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/initdc%2Fembed.cr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/initdc%2Fembed.cr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/initdc","download_url":"https://codeload.github.com/initdc/embed.cr/tar.gz/refs/heads/dev","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/initdc%2Fembed.cr/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33694714,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-30T02:00:06.278Z","response_time":92,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2026-05-30T14:01:37.896Z","updated_at":"2026-05-30T14:01:38.307Z","avatar_url":"https://github.com/initdc.png","language":"Crystal","funding_links":[],"categories":[],"sub_categories":[],"readme":"# embed\n\nEmbed file or dir to your project.\n\n## Installation\n\n1. Add the dependency to your `shard.yml`:\n\n   ```yaml\n   dependencies:\n     embed:\n       github: initdc/embed.cr\n   ```\n\n2. Run `shards install`\n\n## Usage\n\n```crystal\nrequire \"embed\"\n\nposix = Path::Kind.native == Path::Kind::POSIX\n\nfile = posix ? \"#{__DIR__}/testdata/testfile\" : \"#{__DIR__}\\\\testdata\\\\testfile\"\ndir = posix ? \"#{__DIR__}/testdata\" : \"#{__DIR__}\\\\testdata\"\npattern = posix ? \"#{__DIR__}/testdata/.*\" : \"#{__DIR__}\\\\testdata\\\\.*\"\n\nEmbed.embed_file(file)\np Embed.file(file)\n\nEmbed.embed_dir(dir)\np Embed.dir(file)\n\nEmbed.embed_glob(pattern)\np Embed.glob(file)\n```\n\n## Development\n\nTODO: Write development instructions here\n\n## Contributing\n\n1. Fork it (\u003chttps://github.com/initdc/embed/fork\u003e)\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- [initdc](https://github.com/initdc) - creator and maintainer\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finitdc%2Fembed.cr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finitdc%2Fembed.cr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finitdc%2Fembed.cr/lists"}