{"id":15697577,"url":"https://github.com/kt3k/iterable_file_server","last_synced_at":"2026-05-03T09:35:48.885Z","repository":{"id":48340508,"uuid":"364824561","full_name":"kt3k/iterable_file_server","owner":"kt3k","description":"Serve items from `AsyncIterable\u003cFile\u003e`","archived":false,"fork":false,"pushed_at":"2021-10-20T07:49:12.000Z","size":36,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-09T05:20:31.658Z","etag":null,"topics":["async-iterable","deno","file-server"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/kt3k.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}},"created_at":"2021-05-06T07:35:59.000Z","updated_at":"2021-10-20T07:49:28.000Z","dependencies_parsed_at":"2022-09-16T22:51:10.387Z","dependency_job_id":null,"html_url":"https://github.com/kt3k/iterable_file_server","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kt3k%2Fiterable_file_server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kt3k%2Fiterable_file_server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kt3k%2Fiterable_file_server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kt3k%2Fiterable_file_server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kt3k","download_url":"https://codeload.github.com/kt3k/iterable_file_server/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246326600,"owners_count":20759436,"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":["async-iterable","deno","file-server"],"created_at":"2024-10-03T19:20:36.373Z","updated_at":"2026-05-03T09:35:43.854Z","avatar_url":"https://github.com/kt3k.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# iterable_file_server v0.2.0\n\n\u003e Serve items from `AsyncIterable\u003cFile\u003e`\n\n# Usage\n\n```ts\nimport { serve } from \"https://deno.land/x/iterable_file_server@v0.2.0/mod.ts\";\n\nasync function* generateItems() {\n  yield new File([\"foo\"], \"foo.html\");\n  yield new File([\"bar\"], \"foo/bar.html\");\n  yield new File([\"baz\"], \"foo/bar/baz.html\");\n  // ...\n}\n\nconst server = serve(generateItems(), { port: 3000 });\n// This serves the follwoing paths:\n// - http://localhost:3000/foo.html\n// - http://localhost:3000/foo/bar.html\n// - http://localhost:3000/foo/bar/baz.html\n// This also serves the debug page:\n// - http://localhost:3000/__debug__\n\n// ...\n\n// When you want to stop the server.\nserver.close();\n```\n\nThis depends on native http bindings, so you need `--unstable` flag to use this\nmodule.\n\n# History\n\n- 2021-10-20 v0.2.0 Use `File` interface for a file #5.\n- 2021-07-31 v0.1.7 Set `content-type` header #3.\n\n# License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkt3k%2Fiterable_file_server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkt3k%2Fiterable_file_server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkt3k%2Fiterable_file_server/lists"}