{"id":41235036,"url":"https://github.com/mapikit/nethere","last_synced_at":"2026-01-23T01:02:00.846Z","repository":{"id":177449470,"uuid":"657376916","full_name":"mapikit/nethere","owner":"mapikit","description":"Download and unpack files from multiple sources easily","archived":false,"fork":false,"pushed_at":"2023-08-19T00:08:26.000Z","size":168,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-16T08:19:46.184Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/mapikit.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}},"created_at":"2023-06-22T23:48:08.000Z","updated_at":"2023-08-02T03:29:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"278ee93c-62bc-4e3c-9147-b3f4e8e1aa9e","html_url":"https://github.com/mapikit/nethere","commit_stats":null,"previous_names":["mapikit/nethere"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mapikit/nethere","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mapikit%2Fnethere","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mapikit%2Fnethere/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mapikit%2Fnethere/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mapikit%2Fnethere/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mapikit","download_url":"https://codeload.github.com/mapikit/nethere/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mapikit%2Fnethere/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28676466,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T01:00:35.747Z","status":"ssl_error","status_checked_at":"2026-01-23T01:00:19.529Z","response_time":144,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-01-23T01:02:00.522Z","updated_at":"2026-01-23T01:02:00.627Z","avatar_url":"https://github.com/mapikit.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Nethere Logo](https://github.com/mapikit/nethere/blob/main/Nethere_Logo_Horizontal.svg?raw=true)\n\nBring the entire internet to you with Nethere! Nethere is a tool for downloading and unpacking files from the web, saving them to disk or just reading them in memory. All of this while still being simple to use and having **no dependencies**.\n\nIt is fully compatible with typescript and concurs to the ESM format.\n\nThere are currently two simple static methods; `downloadToMemory` and `downloadToDisk`. \n\n---\n\n### Method `downloadToMemory` \nThis method simply downloads and unpacks (if necessary) all the URL file data and saves it to memory, so you can do whatever you like with it. This is useful when working in a browser, so you can read the file contents without saving them to disk\n\n### Method `downloadToDisk`\nThis method downloads and unpacks (if necessary) the file in the url, then saves it to disk in the given path. For zipped files the path should be a directory whereas for loose files it should be a file path.\n\n## Examples:\n\n```typescript\nimport { Nethere } from \"nethere\";\n\nNethere.downloadToMemory(\"https://link/to/my/file.tar\")\n  .then(result =\u003e console.log(result))\n  .catch(console.error);\n  /* \n    Will log something like\n    [\n      {\n        header: {\n          name: \"myFile.txt\",\n          size: 240,\n          ...\n        }\n        data: \u003cBuffer\u003e\n      }\n    ]\n    Where 'data' is the file data and can be converted to string with \n    TextDecoder or saved to disk for example.\n  */\n\nNethere.downloadToDisk(\"https://link/to/my/file.tar\", \"./downloaded\")\n  .catch(console.error);\n  /* \n    Creates a directory 'downloaded' if necessary and save all extracted\n    files inside such dir.\n  */\n```\n\n## Repo Download\nNethere is also able to download the files in a repository from Github, Gitlab and Bitbucket. For this you need to add a second parameter specifying the repository. Optionally you can also specify the branch to download. By default, Nethere downloads the branch `master`.\n\n```typescript\nNethere.downloadToMemory(\"https://github.com/mapikit/nethere\", { repo: \"github\" })\n  .then(result =\u003e console.log(result))\n  .catch(console.error);\n  /* \n    Will download and extract to memory the contents of the master branch on github\n  */\n\nNethere.downloadToMemory(\"https://github.com/mapikit/nethere\", { repo: \"github\", branch: \"dev\" })\n  .then(result =\u003e console.log(result))\n  .catch(console.error);\n  /* \n    Will download and extract to memory the contents of the dev branch on github\n  */\n```\n\n## Support\n### URL Support\nCurrently Nethere supports all urls that point directly to a file or git repos (Github, Gitlab and Bitbucket).\n\n\n### Compressed File Support\n - .tar (Full Support)\n - .zip (Full Support)\n - .tgz (Full Support)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmapikit%2Fnethere","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmapikit%2Fnethere","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmapikit%2Fnethere/lists"}