{"id":20852391,"url":"https://github.com/dimdengd/url-file-size","last_synced_at":"2025-07-13T08:07:18.283Z","repository":{"id":57387539,"uuid":"329882480","full_name":"dimdenGD/url-file-size","owner":"dimdenGD","description":"Get file size from URL (in bytes) without downloading it. 0 dependencies.","archived":false,"fork":false,"pushed_at":"2022-09-30T11:17:25.000Z","size":11,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-14T02:40:11.222Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dimdenGD.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":"2021-01-15T10:38:06.000Z","updated_at":"2025-05-06T12:03:57.000Z","dependencies_parsed_at":"2023-01-18T23:15:28.902Z","dependency_job_id":null,"html_url":"https://github.com/dimdenGD/url-file-size","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dimdenGD/url-file-size","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimdenGD%2Furl-file-size","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimdenGD%2Furl-file-size/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimdenGD%2Furl-file-size/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimdenGD%2Furl-file-size/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dimdenGD","download_url":"https://codeload.github.com/dimdenGD/url-file-size/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimdenGD%2Furl-file-size/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265108514,"owners_count":23712466,"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-18T03:17:31.115Z","updated_at":"2025-07-13T08:07:18.261Z","avatar_url":"https://github.com/dimdenGD.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# url-file-size\nGet file size from URL (in bytes) without downloading it. 0 dependencies.  \n  \nParams: \n- `url` - url to get file size of. string or instance of `require('url').URL` (required)  \n- `timeout` - connection timeout. number in milliseconds (optional, default is `10000`)  \n- `maxRedirects` - max amount of redirects. number (optional, default is `5`)  \n  \nReturns `Promise\u003cNumber\u003e` with bytes on success.  \n```js\nconst ufs = require(\"url-file-size\");\n\nufs(\"https://dimden.dev/logo.png\")\n    .then(console.log) // 1416\n    .catch(console.error);\n```\nCreated by [dimden](https://dimden.dev/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimdengd%2Furl-file-size","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdimdengd%2Furl-file-size","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimdengd%2Furl-file-size/lists"}