# console-multiple-images

> Display images in browser console by an array of URLs

Latest version **1.0.1** (published 2022-01-03) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install console-multiple-images
pnpm add console-multiple-images
yarn add console-multiple-images
bun add console-multiple-images
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2022-01-03 |
| First published | 2022-01-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 11.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Stanislav A |
| Maintainers | stanislav-atr |
| Keywords | console, multiple, image, images, chrome, devtools, logging |

## Links

- npm: https://www.npmjs.com/package/console-multiple-images
- Repository: https://github.com/stanislav-atr/console-multiple-images
- Homepage: https://github.com/stanislav-atr/console-multiple-images#readme
- Issues: https://github.com/stanislav-atr/console-multiple-images/issues
- npm.io page: https://npm.io/package/console-multiple-images

## 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
- [@luma.gl/experimental](https://npm.io/package/@luma.gl/experimental.md) — 77.1K 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

## Recent versions

- 1.0.1 (latest) — 2022-01-03
- 1.0.0 — 2022-01-03

## README

## About
Display images in browser console by an array of URLs.
## Install
 - import module and resolve dependency with a tool like [Browserify](https://browserify.org/),  
   ```npm i console-multiple-images```  
   ```import { consoleImages } from 'console-multiple-images';```
   
 - use [source code](https://raw.githubusercontent.com/stanislav-atr/console-multiple-images/main/src/consoleImages.js).
## Usage
```
consoleImages(inputArray, options);
```
 - ```inputArray``` – array of strings, containing URLs to images to be printed.

 - ```options``` – options object, see below.
#### Options
 - ```normalize``` – defaults to ```false```; pass positive px value to normalize images to (**by with**), keeping aspect ratio.
 
 - ```scale``` – defaults to ```1```; positive number, representing the factor to scale images to.

 - ```log``` – defaults to ```false```; pass true to log images' original dimensions.

 - ```firstN``` – defaults to input array length; positive whole number, describing how many images from input array should be logged.

```
consoleImages(['url1', 'url2', 'url3'], {
  normalize: 360,  // normalize all images to 360px width, keeping aspect ratio
  scale: 0.5,      // make printed images two times smaller
  log: true,       // on every image printed display it's original dimensions
  firstN: 2,       // only print first two images (from url1 & url2)
});
```

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