# sprites-cli

> A command-line interface for css sprites

Latest version **0.1.1** (published 2018-05-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install sprites-cli
pnpm add sprites-cli
yarn add sprites-cli
bun add sprites-cli
```

Provides the command `sprt`.

## 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.1 |
| Published | 2018-05-07 |
| First published | 2016-11-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 7 |
| Unpacked size | 6.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | hbxeagle |
| Maintainers | hbxeagle |
| Keywords | css, sprites, gulp.spritesmith, rem, command, line, cli |

## Links

- npm: https://www.npmjs.com/package/sprites-cli
- Repository: https://github.com/hbxeagle/sprites-cli
- Homepage: https://github.com/hbxeagle/sprites-cli#readme
- Issues: https://github.com/hbxeagle/sprites-cli/issues
- npm.io page: https://npm.io/package/sprites-cli

## Dependencies (7)

- [gulp](https://npm.io/package/gulp.md) ^3.9.1
- [commander](https://npm.io/package/commander.md) ^2.9.0
- [gulp-csso](https://npm.io/package/gulp-csso.md) ^2.0.0
- [gulp-plumber](https://npm.io/package/gulp-plumber.md) ^1.1.0
- [vinyl-buffer](https://npm.io/package/vinyl-buffer.md) ^1.0.0
- [gulp-imagemin](https://npm.io/package/gulp-imagemin.md) ^3.1.1
- [gulp.spritesmith](https://npm.io/package/gulp.spritesmith.md) ^6.2.1

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 0.1.1 (latest) — 2018-05-07
- 0.1.0 — 2016-11-24
- 0.0.1 — 2016-11-22

## README

# sprites-cli

> A command-line interface for css sprites using [gulp.spritesmith](https://www.npmjs.com/package/gulp.spritesmith)

## Installation

``` bash
  $ [sudo] npm install sprites-cli -g
```

## Usage

**Example**

sprite images in the current directory

``` bash
  $ sprt
```

sprite images in the current directory and use rem as unit to generate css.

``` bash
  $ sprt -r
```

sprite pngs in src/icons

``` bash
  $ sprt -f 'src/icons/*.png' -r -a 'top-down' -d './dist'
```

**Options**
```
  $ sprt -h

  Usage: sprt [options]

  A command-line interface for css sprites

  Options:

    -h, --help               output usage information
    -V, --version            output the version number
    -r, --rem                using rem as unit to generate css
    -a, --algorithm [value]  images layout: top-down left-right diagonal alt-diagonal binary-tree
    -f, --files [value]      images, using minimatch rules
    -d, --dist [value]       dest dir
```

**Update**

* 0.1.1 disable spritesmith’s own sort, to be consistent with the input order.

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