{"id":15706784,"url":"https://github.com/djdeveloperr/fetch-base64","last_synced_at":"2025-05-12T19:10:18.822Z","repository":{"id":56432537,"uuid":"311027488","full_name":"DjDeveloperr/fetch-base64","owner":"DjDeveloperr","description":"A simple module to fetch Base64 data of any image/gif, remote or local.","archived":false,"fork":false,"pushed_at":"2020-11-08T10:17:28.000Z","size":3,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-12T19:10:04.323Z","etag":null,"topics":["base64","deno","fetch"],"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/DjDeveloperr.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":"2020-11-08T09:31:36.000Z","updated_at":"2023-09-26T15:36:21.000Z","dependencies_parsed_at":"2022-08-15T18:40:13.614Z","dependency_job_id":null,"html_url":"https://github.com/DjDeveloperr/fetch-base64","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DjDeveloperr%2Ffetch-base64","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DjDeveloperr%2Ffetch-base64/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DjDeveloperr%2Ffetch-base64/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DjDeveloperr%2Ffetch-base64/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DjDeveloperr","download_url":"https://codeload.github.com/DjDeveloperr/fetch-base64/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253805860,"owners_count":21967053,"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":["base64","deno","fetch"],"created_at":"2024-10-03T20:28:23.282Z","updated_at":"2025-05-12T19:10:18.779Z","avatar_url":"https://github.com/DjDeveloperr.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fetch-base64\nA simple module to fetch Base64 data of any image/gif, remote or local, for Deno.\n\nInspired from [fetch-base64](https://github.com/gamell/fetch-base64) for Node.js. I needed it in Deno, so I made a new small module.\n\n## Usage\n* `fetchRemote(url: string, onlyData?: boolean)`: to fetch base64 data from a remote server\n  * **Params**\n    * `url`\n      * URL of the resource\n      * Type: string\n    * `onlyData`:\n      * Whether to fetch only data or complete URI\n      * Type: boolean?\n\n* `fetchLocal(url: string, onlyData?: boolean)`: to fetch base64 data from a local file\n  * **Params**\n    * `url`\n      * Path of the resource\n      * Type: string\n    * `onlyData`:\n      * Whether to fetch only data or complete URI\n      * Type: boolean?\n\n* `fetchAuto(url: string, onlyData?: boolean)`: to fetch base64 data from a remote server / locally, identifies automatically.\n  * **Params**\n    * `url`\n      * URL/Path of the resource\n      * Type: string\n    * `onlyData`:\n      * Whether to fetch only data or complete URI\n      * Type: boolean?\n\n## License\nSee [LICENSE](LICENSE) for more info.\nCopyright 2020 @ DjDeveloper","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdjdeveloperr%2Ffetch-base64","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdjdeveloperr%2Ffetch-base64","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdjdeveloperr%2Ffetch-base64/lists"}