node package manager
Orgs are free. Discover, share, and reuse code in your team. Create a free org »

css-spriter

CssSpriter

Css Sprite Tool

It is a can parse CSS file, generate Sprite map and a new CSS file tool.

Command Line

Install:

npm install css-spriter -g

Usage:

css-spriter index.css index-release.css

It will create a new css file.

You can also use as the follow:

css-spriter index.css

It will replace the old css file.

Node.js

Install

npm install css-spriter --save-dev

Usage:

var cssSpriter = require('css-spriter');
 
cssSpriter('./index.css', './index-release.css').then(
    function () {
        do something...
    }
);