{"id":16768098,"url":"https://github.com/bouk/file2const","last_synced_at":"2025-10-18T09:58:13.647Z","repository":{"id":29720386,"uuid":"33263523","full_name":"bouk/file2const","owner":"bouk","description":"Generates a Go file containing the given files as strings","archived":false,"fork":false,"pushed_at":"2016-06-21T17:21:22.000Z","size":3,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-16T13:25:08.779Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","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/bouk.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}},"created_at":"2015-04-01T17:58:48.000Z","updated_at":"2019-04-15T16:47:43.000Z","dependencies_parsed_at":"2022-08-03T15:12:22.814Z","dependency_job_id":null,"html_url":"https://github.com/bouk/file2const","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bouk/file2const","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bouk%2Ffile2const","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bouk%2Ffile2const/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bouk%2Ffile2const/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bouk%2Ffile2const/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bouk","download_url":"https://codeload.github.com/bouk/file2const/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bouk%2Ffile2const/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270791692,"owners_count":24645796,"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","status":"online","status_checked_at":"2025-08-16T02:00:11.002Z","response_time":91,"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":"2024-10-13T06:10:45.929Z","updated_at":"2025-10-18T09:58:13.566Z","avatar_url":"https://github.com/bouk.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# file2const\n\nGenerates a Go file containing the given files as strings. Useful for packaging in static files.\n\n```\nUsage: file2const \u003cflags\u003e [\u003cinputFile:constantName\u003e] \u003coutputFile.go\u003e\n  -package=\"\": name of package to give to file. Default to directory name\n```\n\nGiven a file like follows:\n\n```javascript\nconsole.log(\"HEY\")\n```\n\nThis command: `file2const --package=\"example\" file.js:value out.go`\n\nWill write the following to out.go\n\n```go\npackage example\n\nconst (\n\tvalue = \"console.log(\\\"HEY\\\")\\n\"\n)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbouk%2Ffile2const","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbouk%2Ffile2const","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbouk%2Ffile2const/lists"}