{"id":18544736,"url":"https://github.com/131/tar-serve-http","last_synced_at":"2025-05-15T05:34:14.584Z","repository":{"id":57146105,"uuid":"201535834","full_name":"131/tar-serve-http","owner":"131","description":"expose a tar contents as an http server","archived":false,"fork":false,"pushed_at":"2021-12-09T15:22:55.000Z","size":131,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-21T23:36:21.102Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/131.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":"2019-08-09T20:26:43.000Z","updated_at":"2021-12-09T15:22:56.000Z","dependencies_parsed_at":"2022-09-06T13:02:11.001Z","dependency_job_id":null,"html_url":"https://github.com/131/tar-serve-http","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/131%2Ftar-serve-http","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/131%2Ftar-serve-http/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/131%2Ftar-serve-http/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/131%2Ftar-serve-http/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/131","download_url":"https://codeload.github.com/131/tar-serve-http/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254282591,"owners_count":22045127,"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-11-06T20:17:27.372Z","updated_at":"2025-05-15T05:34:14.546Z","avatar_url":"https://github.com/131.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://github.com/131/tar-serve-http/actions/workflows/test.yml/badge.svg?branch=master)](https://github.com/131/tar-serve-http/actions/workflows/test.yml)\n[![Coverage Status](https://coveralls.io/repos/github/131/tar-serve-http/badge.svg?branch=master)](https://coveralls.io/github/131/tar-serve-http?branch=master)\n[![Version](https://img.shields.io/npm/v/tar-serve-http.svg)](https://www.npmjs.com/package/tar-serve-http)\n[![License](https://img.shields.io/badge/license-MIT-blue.svg)](http://opensource.org/licenses/MIT)\n[![Code style](https://img.shields.io/badge/code%2fstyle-ivs-green.svg)](https://www.npmjs.com/package/eslint-plugin-ivs)\n\n\n# Motivation\n[tar-serve-http](https://github.com/131/tar-serve-http) exposes a tar archive contents as an http middleware.\n\n# API/usage\n\n```\nconst http     = require('http');\nconst mountTar = require('tar-serve-http');\n\nvar server = http.createServer(mountTar(\"/some/file.tar\"));\n\nserver.listen(0, function() {\n  let port = this.address().port;\n  console.log(\"tar contents is now accessible on http://localhost:%d/\", port);\n  server.close(); //close server and release tar\n});\n\n```\n\n\n# Credits / thanks\n* [131, author](https://github.com/131)\n* [mafintosh tar-stream](https://github.com/mafintosh/tar-stream)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F131%2Ftar-serve-http","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F131%2Ftar-serve-http","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F131%2Ftar-serve-http/lists"}