{"id":30060101,"url":"https://github.com/tiaanduplessis/image-to-uri","last_synced_at":"2025-08-08T01:42:08.296Z","repository":{"id":57272173,"uuid":"89028886","full_name":"tiaanduplessis/image-to-uri","owner":"tiaanduplessis","description":"Convert image file to data URI","archived":false,"fork":false,"pushed_at":"2019-06-02T22:56:10.000Z","size":331,"stargazers_count":9,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-21T12:52:51.222Z","etag":null,"topics":["base64","fs","image","jpeg","jpg","png","uri"],"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/tiaanduplessis.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":"2017-04-21T22:37:57.000Z","updated_at":"2022-05-30T09:48:57.000Z","dependencies_parsed_at":"2022-09-12T10:50:14.032Z","dependency_job_id":null,"html_url":"https://github.com/tiaanduplessis/image-to-uri","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/tiaanduplessis/image-to-uri","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiaanduplessis%2Fimage-to-uri","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiaanduplessis%2Fimage-to-uri/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiaanduplessis%2Fimage-to-uri/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiaanduplessis%2Fimage-to-uri/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tiaanduplessis","download_url":"https://codeload.github.com/tiaanduplessis/image-to-uri/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiaanduplessis%2Fimage-to-uri/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269352356,"owners_count":24402672,"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","status":"online","status_checked_at":"2025-08-07T02:00:09.698Z","response_time":73,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["base64","fs","image","jpeg","jpg","png","uri"],"created_at":"2025-08-08T01:41:52.228Z","updated_at":"2025-08-08T01:42:08.262Z","avatar_url":"https://github.com/tiaanduplessis.png","language":"JavaScript","funding_links":["https://www.paypal.me/tiaanduplessis/1"],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eimage-to-uri\u003c/h1\u003e\n\u003cdiv align=\"center\"\u003e\n  \u003cstrong\u003eConvert image file to data URI\u003c/strong\u003e\n\u003c/div\u003e\n\u003cbr\u003e\n\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://npmjs.org/package/image-to-uri\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/v/image-to-uri.svg?style=flat-square\" alt=\"Package version\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://npmjs.org/package/image-to-uri\"\u003e\n  \u003cimg src=\"https://img.shields.io/npm/dm/image-to-uri.svg?style=flat-square\" alt=\"Downloads\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/feross/standard\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square\" alt=\"Standard\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://travis-ci.org/tiaanduplessis/image-to-uri\"\u003e\n    \u003cimg src=\"https://img.shields.io/travis/tiaanduplessis/image-to-uri.svg?style=flat-square\" alt=\"Travis Build\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/RichardLitt/standard-readme)\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square\" alt=\"Standard Readme\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://badge.fury.io/gh/tiaanduplessis%2Fimage-to-uri\"\u003e\n    \u003cimg src=\"https://badge.fury.io/gh/tiaanduplessis%2Fimage-to-uri.svg?style=flat-square\" alt=\"GitHub version\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://dependencyci.com/github/tiaanduplessis/image-to-uri\"\u003e\n    \u003cimg src=\"https://dependencyci.com/github/tiaanduplessis/image-to-uri/badge?style=flat-square\" alt=\"Dependency CI\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/tiaanduplessis/image-to-uri/blob/master/LICENSE\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/l/image-to-uri.svg?style=flat-square\" alt=\"License\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"http://makeapullrequest.com\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square\" alt=\"PRs\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://www.paypal.me/tiaanduplessis/1\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/$-support-green.svg?style=flat-square\" alt=\"Donate\" /\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n\u003cbr\u003e\n\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://github.com/tiaanduplessis/image-to-uri/watchers\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/watchers/tiaanduplessis/image-to-uri.svg?style=social\" alt=\"Github Watch Badge\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/tiaanduplessis/image-to-uri/stargazers\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/stars/tiaanduplessis/image-to-uri.svg?style=social\" alt=\"Github Star Badge\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://twitter.com/intent/tweet?text=Check%20out%20image-to-uri!%20https://github.com/tiaanduplessis/image-to-uri%20%F0%9F%91%8D\"\u003e\n    \u003cimg src=\"https://img.shields.io/twitter/url/https/github.com/tiaanduplessis/image-to-uri.svg?style=social\" alt=\"Tweet\" /\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n\u003cbr\u003e\n\u003cdiv align=\"center\"\u003e\n  Built with ❤︎ by \u003ca href=\"tiaan.beer\"\u003eTiaan\u003c/a\u003e and \u003ca href=\"https://github.com/tiaanduplessis/image-to-uri/graphs/contributors\"\u003econtributors\u003c/a\u003e\n\u003c/div\u003e\n\n\u003ch2\u003eTable of Contents\u003c/h2\u003e\n\u003cdetails\u003e\n  \u003csummary\u003eTable of Contents\u003c/summary\u003e\n  \u003cli\u003e\u003ca href=\"#install\"\u003eInstall\u003c/a\u003e\u003c/li\u003e\n  \u003cli\u003e\u003ca href=\"#usage\"\u003eUsage\u003c/a\u003e\u003c/li\u003e\n  \u003cli\u003e\u003ca href=\"#cli\"\u003eCLI\u003c/a\u003e\u003c/li\u003e\n  \u003cli\u003e\u003ca href=\"#contribute\"\u003eContribute\u003c/a\u003e\u003c/li\u003e\n  \u003cli\u003e\u003ca href=\"#license\"\u003eLicense\u003c/a\u003e\u003c/li\u003e\n\u003c/details\u003e\n\n## Install\n\n[![Greenkeeper badge](https://badges.greenkeeper.io/tiaanduplessis/image-to-uri.svg)](https://greenkeeper.io/)\n\n```sh\n$ npm install --save image-to-uri\n# OR\n$ yarn add image-to-uri\n```\n\n## Usage\n\n```js\n\nconst imageToUri = require('image-to-uri')\nconsole.log(imageToUri('./example.jpg')) // data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQAB...\n\n```\n\nSupported image types:\n\n- png\n- gif\n- jpg\n- jpeg\n- bm\n- bmp\n- webp\n- ico\n- svg\n\n## CLI\n\n```sh\n$ npm install --global image-to-uri\n# OR\n$ yarn global add image-to-uri\n```\n\nThen:\n\n```sh\n$ image-to-uri ./example.jpg\n# data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQAB...\n$ image-to-uri ./example.jpg | pbcopy\n# pipe to clipboard(macOS)\n```\n\n## Contribute\n\nContributions are welcome. Please open up an issue or create PR if you would like to help out.\n\nNote: If editing the README, please conform to the [standard-readme](https://github.com/RichardLitt/standard-readme) specification.\n\n## License\n\nLicensed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftiaanduplessis%2Fimage-to-uri","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftiaanduplessis%2Fimage-to-uri","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftiaanduplessis%2Fimage-to-uri/lists"}