npm.io
1.0.0 • Published 8 years agoCLI

pomeg

Licence
MIT
Version
1.0.0
Deps
3
Vulns
1
Weekly
0

pome

pome(granate) a cli helper that create sprite image and output the raw offset information.

usage

module

read all images in ./js_images and generate a sprite image named sprite.png

const Pome = require('pomeg')

let task = new Pome('./js_images', {
    padding: 0,
    order: 'binary-tree'
})
let {sourceMap} = task.sprite('./sprite.png')
console.info(sourceMap)

CLI

__CODE_BLOCK_1__gt; npm install -g pomeg
__CODE_BLOCK_1__gt; pome ./js_images ./sprite.png

enjoy it

Keywords