# log-img

> support console.log a image or print an image file into terminal

Latest version **1.2.2** (published 2020-06-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install log-img
pnpm add log-img
yarn add log-img
bun add log-img
```

Provides the command `log-img`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.2 |
| Published | 2020-06-22 |
| First published | 2020-06-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 422 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | hoanglam41@gmail.com |
| Maintainers | neimadvn |
| Keywords | image, console, log, log-img |

## Links

- npm: https://www.npmjs.com/package/log-img
- Repository: https://github.com/neimadVN/img-console-log
- Homepage: https://github.com/neimadVN/img-console-log#readme
- Issues: https://github.com/neimadVN/img-console-log/issues
- npm.io page: https://npm.io/package/log-img

## Dependencies (2)

- [jimp](https://npm.io/package/jimp.md) ^0.13.0
- [chalk](https://npm.io/package/chalk.md) ^4.1.0

## Alternatives

- [cli-color](https://npm.io/package/cli-color.md) — 3.4M weekly downloads
- [log](https://npm.io/package/log.md) — 1.3M weekly downloads
- [logstash-client](https://npm.io/package/logstash-client.md) — 4.5K weekly downloads
- [@nocobase/plugin-logger](https://npm.io/package/@nocobase/plugin-logger.md) — 2.0K weekly downloads
- [child-process-debug](https://npm.io/package/child-process-debug.md) — 695 weekly downloads

## Recent versions

- 1.2.2 (latest) — 2020-06-22
- 1.2.1 — 2020-06-22
- 1.2.0 — 2020-06-22
- 1.0.0 — 2020-06-18

## README

<h1 align="center">Welcome to log-img 👋</h1>

![result](https://github.com/neimadVN/img-console-log/blob/master/core/screen-shot.png?raw=true)

This package help you to console.log image into your console or print out an image file into terminal cli

---
## ✨ Installation

`log-img` can be install be installed by command:
```sh
npm i log-img
```

But we highly recommend using it as a global package, so you can use cli command everywhere and making sure that this package does not occupy your project hardware:
```sh
npm i -g log-img
```

---
## 🚀 Usage
Using as cli
```sh
log-img lenna.jpg
log-img https://www.google.com/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png
log-img https://source.unsplash.com/random
```

Using as package
```js
const logImg = require('log-img');

console.log('this is image:');
logImg(Blob_Base64_Path2File_anyJimpLibCanRead);
```

`log-img` can log any thing that Jimp lib support. Such as path to a file, URL, dimensions, ...

[Go to Jimp?](https://www.npmjs.com/package/jimp)

---

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