Skip to content

sxcooler/sprites-cli

 
 

Repository files navigation

sprites-cli

A command-line interface for css sprites using gulp.spritesmith

Installation

  $ [sudo] npm install sprites-cli -g

Usage

Example

sprite images in the current directory

  $ sprt

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

  $ sprt -r

sprite pngs in src/icons

  $ 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

About

A command-line interface for css sprites。

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 87.7%
  • HTML 12.3%