# imgtobase

> creates base64 file from img and viceversa

Latest version **0.0.4** (published 2018-07-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install imgtobase
pnpm add imgtobase
yarn add imgtobase
bun add imgtobase
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.4 |
| Published | 2018-07-27 |
| First published | 2018-07-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | suren23 |
| Maintainers | suren23 |
| Keywords | img2base |

## Links

- npm: https://www.npmjs.com/package/imgtobase
- npm.io page: https://npm.io/package/imgtobase

## Recent versions

- 0.0.4 (latest) — 2018-07-27
- 0.0.3 — 2018-07-27
- 0.0.2 — 2018-07-27
- 0.0.1 — 2018-07-27

## README

#Converts image to base64 code to store the image into the database and converts the base64 code into image back again

#For example
var require = require('./img2base');
var basecreate = require.ImgtoBase64('Zombatar_1.jpg', 'file'); 
#converts the image named Zombatar_1.jpg into a base64 code and stores it in a file named 'file'

#For example
var require = require('./img2base');
var base64toimg = new Base64toImg('text', 'hello');
#converts the file named 'text' that contains the base64 code for an image/file and creates a image named 'hello' with base64 code

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