# pixaki

> A CLI for Pixaki

Latest version **0.1.8** (published 2021-06-07) · ISC license · 0 weekly downloads

## Install

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

Provides the commands `px`, `pixaki`.

## 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.1.8 |
| Published | 2021-06-07 |
| First published | 2021-04-22 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.9 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Charlie Walter |
| Maintainers | cjonasw |

## Links

- npm: https://www.npmjs.com/package/pixaki
- Repository: https://github.com/pixools/pixaki-cli
- Homepage: https://github.com/pixools/pixaki-cli#readme
- Issues: https://github.com/pixools/pixaki-cli/issues
- Funding: https://ko-fi.com/cjonasw
- npm.io page: https://npm.io/package/pixaki

## Recent versions

- 0.1.8 (latest) — 2021-06-07
- 0.1.7 — 2021-05-25
- 0.1.6 — 2021-05-10
- 0.1.5 — 2021-05-08
- 0.1.4 — 2021-05-07
- 0.1.3 — 2021-05-03
- 0.1.2 — 2021-05-02
- 0.1.1 — 2021-05-02
- 0.1.0 — 2021-05-02
- 0.0.11 — 2021-05-01
- 0.0.10 — 2021-04-29
- 0.0.9 — 2021-04-29
- 0.0.8 — 2021-04-29
- 0.0.7 — 2021-04-29
- 0.0.6 — 2021-04-25
- … 5 more at https://npm.io/package/pixaki/versions

## README

# Pixaki CLI

A CLI for [Pixaki 4](https://pixaki.com/) files.

## ImageMagick

First download and install [ImageMagick](http://www.imagemagick.org/), this package will not work without it.

## Install Globally

```
npm install -g pixaki
```

Currently, each command only exports as a spritesheet as this tool was designed, primarily, for use with [Working Copy](https://workingcopyapp.com/).

## Usage

```
pixaki export <PATH> [--columns=COUNT] [--outDir=OUT_DIR] [--cwd=CURRENT_WORKING_DIRECTORY]
``

``
px e <PATH> [-c COUNT] [-o OUT_DIR] [--cwd=CURRENT_WORKING_DIRECTORY]
```

- `COUNT`: When to "wrap" the spritesheet (defaults to `8`)
- `PATH`: The pixaki project(s) to export from (requires `.pixaki`)
- `OUT_DIR`: The output folder.
- `CURRENT_WORKING_DIRECTORY`: The current working directory where to look for files (this will be ignored in the outDir)

### Example

```
pixaki export my-sprite.pixaki
```

```
pixaki export 'my-art/**.*.pixaki' --outDir=some-folder
```

```
pixaki export my-sprite.pixaki --columns=4
```

```
px e my-sprite.pixaki -c 4 -o some-folder
```

### Specific layer exporting

This will grab 1 layer by name and create a spritesheet out of it. It will not respect any visibility or opacity settings and will be the raw drawing. Originally designed for exporting texture mapping. (Normals, Masks etc.)

```
pixaki layer <PATH> <LAYER_NAME> [-c, --columns=COUNT] [-o, --outDir=OUT_DIR]
```

```
px l <PATH> <LAYER_NAME> [-c, --columns=COUNT] [-o, --outDir=OUT_DIR]
```

- `LAYER_NAME`: can be anything, it just has to match a layer name within Pixaki

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