Skip to content

🥤 CLI for @pencil.js/spritesheet

License

Notifications You must be signed in to change notification settings

pencil-js/spritesheet-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@pencil.js/spritesheet-cli

Package version

CLI for @pencil.js/spritesheet.

Installation

npm install @pencil.js/spritesheet-cli

CLI

spritesheet <globPattern> [<options>]

Options

--output, -o        Path where to output files      (default: ./)
--name, -n          Name for the files              (default: spritesheet)
--outputFormat, -f  Result image format             (default: png)
--margin, -m,       Margin around images            (default: 1)
--no-crop           Don't crop images
--cwd, -c           Base directory for all images   (default: ./)
--silent, -s        Don't log success               (default: false)

Example

$ spritesheet *.png -cwd ./src/images/ --output ./dist/assets --name icons

License

MIT