# imgurl-to-base64

> A simple wrapper that converts images urls to base64 image strings

Latest version **1.0.4** (published 2023-07-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install imgurl-to-base64
pnpm add imgurl-to-base64
yarn add imgurl-to-base64
bun add imgurl-to-base64
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2023-07-14 |
| First published | 2023-07-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 2.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Emil Chigu |
| Maintainers | emil_chigu |
| Keywords | image, base64, url, image to base64, image url to base64 |

## Links

- npm: https://www.npmjs.com/package/imgurl-to-base64
- Repository: https://github.com/EmilChigu/imgUrl-to-base64
- Homepage: https://github.com/EmilChigu/imgUrl-to-base64#readme
- Issues: https://github.com/EmilChigu/imgUrl-to-base64/issues
- npm.io page: https://npm.io/package/imgurl-to-base64

## Dependencies (1)

- [axios](https://npm.io/package/axios.md) ^1.4.0

## Alternatives

- [base64url](https://npm.io/package/base64url.md) — 6.1M weekly downloads
- [get-installed-path](https://npm.io/package/get-installed-path.md) — 502.9K weekly downloads
- [@uppy/url](https://npm.io/package/@uppy/url.md) — 185.8K weekly downloads
- [@d3fc/d3fc-shape](https://npm.io/package/@d3fc/d3fc-shape.md) — 16.2K weekly downloads
- [localizer](https://npm.io/package/localizer.md) — 226 weekly downloads

## Recent versions

- 1.0.4 (latest) — 2023-07-14
- 1.0.3 — 2023-07-14
- 1.0.2 — 2023-07-14
- 1.0.1 — 2023-07-14
- 1.0.0 — 2023-07-14

## README

# imgurl-to-base64

A simple wrapper that converts images urls to base64 image strings

## Installation

Use the package manager npm.

```bash
npm install imgurl-to-base64
```

## Usage

```javascript
import imgUrlToBase64 from 'imgurl-to-base64'

const url = 'https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png'

const test = async () => {
  console.log(await imgUrlToBase64(url))
}
```

## Contributing

Pull requests are welcome. For major changes, please open an issue first
to discuss what you would like to change.

Please make sure to update tests as appropriate.

## License

[MIT](https://choosealicense.com/licenses/mit/)

---
_Source: https://npm.io/package/imgurl-to-base64 · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
