# catpixjs

> Display images in terminal using Javascript.

Latest version **1.0.2** (published 2015-07-04) · MIT license · 0 weekly downloads

## Install

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

Provides the command `catpix`.

## 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.0.2 |
| Published | 2015-07-04 |
| First published | 2015-07-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Dickson Wong |
| Maintainers | diwo |
| Keywords | catpix, image, picture, terminal, console, display, pixels, png, jpg, jpeg, gif |

## Links

- npm: https://www.npmjs.com/package/catpixjs
- Repository: https://github.com/diwo/catpixjs
- Homepage: https://github.com/diwo/catpixjs#readme
- Issues: https://github.com/diwo/catpixjs/issues
- npm.io page: https://npm.io/package/catpixjs

## Dependencies (2)

- [get-pixels](https://npm.io/package/get-pixels.md) ^3.2.2
- [ansi-256-colors](https://npm.io/package/ansi-256-colors.md) ^1.1.0

## Alternatives

- [localforage](https://npm.io/package/localforage.md) — 6.2M weekly downloads
- [localforage-observable](https://npm.io/package/localforage-observable.md) — 30.8K weekly downloads
- [@y/y](https://npm.io/package/@y/y.md) — 30.1K weekly downloads
- [@metaobjectsdev/render](https://npm.io/package/@metaobjectsdev/render.md) — 3.5K weekly downloads
- [@ledgerhq/coin-algorand](https://npm.io/package/@ledgerhq/coin-algorand.md) — 1.1K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2015-07-04
- 1.0.1 — 2015-07-04
- 1.0.0 — 2015-07-01

## README

# Catpix.js

Transform images into text to be displayed in the terminal using Javascript.

Inspired by [radek.io/2015/06/29/catpix/](http://radek.io/2015/06/29/catpix/)

## Usage
### CLI
    $ npm install -g catpixjs
    $ catpix lenna.png

### Require
    var catpix = require('catpixjs');
    catpix('lenna.png', function(err, data) {
        console.log(data);
    }

## API
#### catpix(path, [options], callback)
* **path** path to the image file
* **options** *(optional)* object
    * **options.maxWidth** maximum number of printable characters to use for each line
* **callback** *function(err, data)*
    * **err** an Error object in case of errors
    * **data** string representation of the image

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