{
  "_id": "node-sprite",
  "maintainers": [
    {
      "name": "naltatis",
      "email": "michael@geers.tv"
    }
  ],
  "dist-tags": {
    "latest": "0.1.2"
  },
  "versions": {
    "0.0.4": {
      "name": "node-sprite",
      "version": "0.0.4",
      "author": {
        "name": "naltatis"
      },
      "repository": {
        "type": "git",
        "url": "git://github.com/naltatis/node-sprite.git"
      },
      "dependencies": {
        "coffee-script": "1.1.2",
        "underscore": "1.2.1",
        "imagemagick": "0.1.2",
        "seq": "0.3.5"
      },
      "devDependencies": {
        "expresso": "0.9.0",
        "stylus": "0.19.2"
      },
      "main": "./index.coffee",
      "engines": {
        "node": "> 0.4.x"
      },
      "_npmUser": {
        "name": "naltatis",
        "email": "michael@geers.tv"
      },
      "_id": "node-sprite@0.0.4",
      "optionalDependencies": {},
      "_engineSupported": true,
      "_npmVersion": "1.1.0-3",
      "_nodeVersion": "v0.6.9",
      "_defaultsLoaded": true,
      "dist": {
        "shasum": "c5341a94ac0d310487f14d6e996d2a17f22602a2",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/node-sprite/-/node-sprite-0.0.4.tgz",
        "integrity": "sha512-UF90RXIkWagPSGliWnxRrGMUoBh1jMvdhQ63TuRAd+UkFSCqqyU8SDkEkP74LkdZFH1NRSvwxpwhk3kXeImGTw==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIDetxfVMm9sXJTJIR5R9GzQZlYiWvjTBHKBrWpYuPAZ1AiEA6yuTvgSQi3FRY1poWP1QOlFJdipDSoqglKIlm7xhfW0="
          }
        ]
      },
      "maintainers": [
        {
          "name": "naltatis",
          "email": "michael@geers.tv"
        }
      ],
      "directories": {}
    },
    "0.0.5": {
      "name": "node-sprite",
      "version": "0.0.5",
      "author": {
        "name": "naltatis"
      },
      "repository": {
        "type": "git",
        "url": "git://github.com/naltatis/node-sprite.git"
      },
      "dependencies": {
        "coffee-script": "1.1.2",
        "underscore": "1.3.1",
        "imagemagick": "0.1.2",
        "seq": "0.3.5"
      },
      "devDependencies": {
        "expresso": "0.9.0",
        "stylus": "0.19.2"
      },
      "main": "./index.coffee",
      "engines": {
        "node": "> 0.4.x"
      },
      "_npmUser": {
        "name": "naltatis",
        "email": "michael@geers.tv"
      },
      "_id": "node-sprite@0.0.5",
      "optionalDependencies": {},
      "_engineSupported": true,
      "_npmVersion": "1.1.1",
      "_nodeVersion": "v0.6.11",
      "_defaultsLoaded": true,
      "dist": {
        "shasum": "5027bbf78b24c4468818e0a09ced2de2d244ea0d",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/node-sprite/-/node-sprite-0.0.5.tgz",
        "integrity": "sha512-K/Bqv2HiC0EuekckHrWMSGcA4zrid8i0XBgXGH5dwDczK/CCQcWc+u09GD+4aVJokjCeMTXyQpGWvfjfpsa8rg==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIAvp26xn5tJ4QrW8wF+SPKjwWj5+94FLUjPT/fXX9mhLAiEAs9pfoP9zYDj2qP8TSkrn4RM29HQWy2s/9t+Jj/YyZSw="
          }
        ]
      },
      "maintainers": [
        {
          "name": "naltatis",
          "email": "michael@geers.tv"
        }
      ],
      "directories": {}
    },
    "0.0.6": {
      "name": "node-sprite",
      "version": "0.0.6",
      "author": {
        "name": "naltatis"
      },
      "repository": {
        "type": "git",
        "url": "git://github.com/naltatis/node-sprite.git"
      },
      "dependencies": {
        "coffee-script": "1.1.2",
        "underscore": "1.3.1",
        "imagemagick": "0.1.2",
        "seq": "0.3.5",
        "watch": "0.5.0"
      },
      "devDependencies": {
        "expresso": "0.9.0",
        "stylus": "0.19.2"
      },
      "main": "./index.coffee",
      "engines": {
        "node": "> 0.4.x"
      },
      "_npmUser": {
        "name": "naltatis",
        "email": "michael@geers.tv"
      },
      "_id": "node-sprite@0.0.6",
      "optionalDependencies": {},
      "_engineSupported": true,
      "_npmVersion": "1.1.1",
      "_nodeVersion": "v0.6.11",
      "_defaultsLoaded": true,
      "dist": {
        "shasum": "d96aa63995fb1b0ff498794bd780c9bcebe4b3c8",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/node-sprite/-/node-sprite-0.0.6.tgz",
        "integrity": "sha512-THxsqEUonmrFgB34wa46OITrHdGAYEVt0Lm0LLhNznVsdQVyg6QeDA7E8KqVOwgbmpB2LVNiQFS9Fk3btBylWw==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIF47DghPpRrlodx1WOF3wn9HZip4obPf7BEuzUkDIe5pAiEAxW0VyBhajYL1REyEEF381G++51T1WaLG+LDY4ZyZvQg="
          }
        ]
      },
      "maintainers": [
        {
          "name": "naltatis",
          "email": "michael@geers.tv"
        }
      ],
      "directories": {}
    },
    "0.0.7": {
      "name": "node-sprite",
      "version": "0.0.7",
      "author": {
        "name": "naltatis"
      },
      "repository": {
        "type": "git",
        "url": "git://github.com/naltatis/node-sprite.git"
      },
      "dependencies": {
        "coffee-script": "1.3.1",
        "underscore": "1.3.1",
        "imagemagick": "http://github.com/naltatis/node-imagemagick/tarball/master",
        "seq": "0.3.5",
        "watch": "0.5.0"
      },
      "devDependencies": {
        "expresso": "0.9.0",
        "stylus": "0.19.2"
      },
      "main": "./index.coffee",
      "engines": {
        "node": "> 0.4.x"
      },
      "_npmUser": {
        "name": "naltatis",
        "email": "michael@geers.tv"
      },
      "_id": "node-sprite@0.0.7",
      "optionalDependencies": {},
      "_engineSupported": true,
      "_npmVersion": "1.1.1",
      "_nodeVersion": "v0.6.14",
      "_defaultsLoaded": true,
      "dist": {
        "shasum": "ca48de9bbf36d95e4962684bc9744a734d7482ea",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/node-sprite/-/node-sprite-0.0.7.tgz",
        "integrity": "sha512-FDWqQFKVAAmeJNLDVPluc0Rnr9TAbr0ft23IxEVSjSbxauFkpDKDWvN+TtsEglFfw7R/VD7pkO0rmWY1s6NyIw==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEYCIQDxQr23e6FGPQ6mx43RKeOwE1gMMDjb8rocHIHlzEcf/gIhANkvZ+mfo8ck8VJu2ohI/iEGiiw1uo1Co//B3p8MNvcS"
          }
        ]
      },
      "maintainers": [
        {
          "name": "naltatis",
          "email": "michael@geers.tv"
        }
      ],
      "directories": {}
    },
    "0.0.8": {
      "name": "node-sprite",
      "version": "0.0.8",
      "author": {
        "name": "naltatis"
      },
      "repository": {
        "type": "git",
        "url": "git://github.com/naltatis/node-sprite.git"
      },
      "dependencies": {
        "coffee-script": "1.3.1",
        "underscore": "1.3.1",
        "imagemagick": "http://github.com/naltatis/node-imagemagick/tarball/master",
        "seq": "0.3.5",
        "watch": "0.5.0"
      },
      "devDependencies": {
        "expresso": "0.9.0",
        "stylus": "0.19.2"
      },
      "main": "./index.coffee",
      "engines": {
        "node": "> 0.4.x"
      },
      "_npmUser": {
        "name": "naltatis",
        "email": "michael@geers.tv"
      },
      "_id": "node-sprite@0.0.8",
      "optionalDependencies": {},
      "_engineSupported": true,
      "_npmVersion": "1.1.1",
      "_nodeVersion": "v0.6.14",
      "_defaultsLoaded": true,
      "dist": {
        "shasum": "b076aca6511dd719c98388cefb24d431478d6719",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/node-sprite/-/node-sprite-0.0.8.tgz",
        "integrity": "sha512-jH2FknzNh6mgFpZfh0i3z4J4npN8Nj95SzM09FH8Pi4IkLuJuyhYl7xWVcGSsZbxHzr6ft6Y1qYptGIghmVquw==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIQC+EcC8ggTKRNHsFXTNriVnSbEvZAXKf1ih72h9xH9FKwIgdjeYfqB2n6PxeexjA1mdCWoYU3rw1nNboBUGfOv0wrg="
          }
        ]
      },
      "maintainers": [
        {
          "name": "naltatis",
          "email": "michael@geers.tv"
        }
      ],
      "directories": {}
    },
    "0.0.9": {
      "name": "node-sprite",
      "version": "0.0.9",
      "author": {
        "name": "naltatis"
      },
      "repository": {
        "type": "git",
        "url": "git://github.com/naltatis/node-sprite.git"
      },
      "dependencies": {
        "coffee-script": "1.3.1",
        "underscore": "1.3.1",
        "imagemagick": "http://github.com/naltatis/node-imagemagick/tarball/master",
        "seq": "0.3.5",
        "watch": "0.5.0"
      },
      "devDependencies": {
        "expresso": "0.9.0",
        "stylus": "0.19.2"
      },
      "main": "./index.coffee",
      "engines": {
        "node": "> 0.4.x"
      },
      "_npmUser": {
        "name": "naltatis",
        "email": "michael@geers.tv"
      },
      "_id": "node-sprite@0.0.9",
      "optionalDependencies": {},
      "_engineSupported": true,
      "_npmVersion": "1.1.1",
      "_nodeVersion": "v0.6.14",
      "_defaultsLoaded": true,
      "dist": {
        "shasum": "48b771ceca9417a4412830a627b548b76bcd03d4",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/node-sprite/-/node-sprite-0.0.9.tgz",
        "integrity": "sha512-PashoO8teX7pTyAGYGj0fl5gF/Ye4bh8TtxXoXgRDPjHGPo2pJGtGD3VQ7FMUDx+I5z8z+TMLiOp4+mb1/HUbQ==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIQDFLUHTMz1IbFFA4INjOvRoxk/CAiXGc6cUbiwLhyrE/gIgHTXFseesv2oc9mN3lJmy0BjPaEiNkPD0ofwuu0W0vXI="
          }
        ]
      },
      "maintainers": [
        {
          "name": "naltatis",
          "email": "michael@geers.tv"
        }
      ],
      "directories": {}
    },
    "0.0.10": {
      "name": "node-sprite",
      "version": "0.0.10",
      "author": {
        "name": "naltatis"
      },
      "repository": {
        "type": "git",
        "url": "git://github.com/naltatis/node-sprite.git"
      },
      "dependencies": {
        "coffee-script": "1.3.1",
        "underscore": "1.3.1",
        "imagemagick": "http://github.com/naltatis/node-imagemagick/tarball/master",
        "seq": "0.3.5",
        "watch": "0.5.0"
      },
      "devDependencies": {
        "expresso": "0.9.0",
        "stylus": "0.19.2"
      },
      "main": "./index.coffee",
      "engines": {
        "node": "> 0.4.x"
      },
      "_npmUser": {
        "name": "naltatis",
        "email": "michael@geers.tv"
      },
      "_id": "node-sprite@0.0.10",
      "optionalDependencies": {},
      "_engineSupported": true,
      "_npmVersion": "1.1.1",
      "_nodeVersion": "v0.6.14",
      "_defaultsLoaded": true,
      "dist": {
        "shasum": "3a464fa17d9de4f56330d949f2f078d7f02d3f7e",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/node-sprite/-/node-sprite-0.0.10.tgz",
        "integrity": "sha512-tna/6rB6YuOVXZKZ2Lqobmxg6mfLLisJq/DxhA+T/DAT9/PrLbx78b0drzFNEVgA3sBjjqoIDiGkDoaBU+A0Cg==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEYCIQCokLj9N2uE58bhsP2XUJnZacU7WxhM9PS3CBGBGIeA2AIhAInUmzB20WGlNVPggbOsbhnsWQX8bYU9byOJPGtREjs3"
          }
        ]
      },
      "maintainers": [
        {
          "name": "naltatis",
          "email": "michael@geers.tv"
        }
      ],
      "directories": {}
    },
    "0.0.11": {
      "name": "node-sprite",
      "version": "0.0.11",
      "author": {
        "name": "naltatis"
      },
      "repository": {
        "type": "git",
        "url": "git://github.com/naltatis/node-sprite.git"
      },
      "dependencies": {
        "coffee-script": "1.3.1",
        "underscore": "1.3.1",
        "imagemagick": "http://github.com/naltatis/node-imagemagick/tarball/master",
        "seq": "0.3.5",
        "watch": "0.5.0"
      },
      "devDependencies": {
        "expresso": "0.9.0",
        "stylus": "0.19.2"
      },
      "main": "./index.coffee",
      "engines": {
        "node": "> 0.4.x"
      },
      "_npmUser": {
        "name": "naltatis",
        "email": "michael@geers.tv"
      },
      "_id": "node-sprite@0.0.11",
      "optionalDependencies": {},
      "_engineSupported": true,
      "_npmVersion": "1.1.1",
      "_nodeVersion": "v0.6.14",
      "_defaultsLoaded": true,
      "dist": {
        "shasum": "1a0a6214a038435aecd973deecdf5a56b2ad8612",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/node-sprite/-/node-sprite-0.0.11.tgz",
        "integrity": "sha512-3PD/LHajjavf9lGVp/NLA6Xb/hplE6oLQGGXXNC1c03e4nm+8yzQS2+1uwRrXEFA5bJ7lYO6W6SwHDfu2XwJeA==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEYCIQCOex5eiCxjA+bRkZhR6E9W8VUsfzMPuOFNHPodjfo7sQIhAIytaQuTfCI/zpNPvk9FwFIM17qUJ67L+qXERW8YO9hd"
          }
        ]
      },
      "maintainers": [
        {
          "name": "naltatis",
          "email": "michael@geers.tv"
        }
      ],
      "directories": {}
    },
    "0.0.12": {
      "name": "node-sprite",
      "version": "0.0.12",
      "author": {
        "name": "naltatis"
      },
      "repository": {
        "type": "git",
        "url": "git://github.com/naltatis/node-sprite.git"
      },
      "dependencies": {
        "coffee-script": "1.3.1",
        "underscore": "1.3.1",
        "imagemagick": "http://github.com/naltatis/node-imagemagick/tarball/master",
        "seq": "0.3.5",
        "watch": "0.5.0"
      },
      "devDependencies": {
        "expresso": "0.9.0",
        "stylus": "0.19.2"
      },
      "main": "./index.coffee",
      "engines": {
        "node": "> 0.4.x"
      },
      "_npmUser": {
        "name": "naltatis",
        "email": "michael@geers.tv"
      },
      "_id": "node-sprite@0.0.12",
      "optionalDependencies": {},
      "_engineSupported": true,
      "_npmVersion": "1.1.1",
      "_nodeVersion": "v0.6.14",
      "_defaultsLoaded": true,
      "dist": {
        "shasum": "7591d091ca1d188a0216415257c96e88b392bb57",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/node-sprite/-/node-sprite-0.0.12.tgz",
        "integrity": "sha512-e3BwnpvVGNfGepIUoGVUqaXpdiowArKj77rcL/+taggEyJuc42rKyPsmmH9iIfLmNRWD2kBBOwaNqzS9qSQLoQ==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEYCIQDe0iQGHAGEVBgHWW3jPQxiOHycKKPKwES+GcQPp7WJRAIhAK2PnW9Pr9MzyOlURL+H6I4h3sGSiFhGFVeveeYcP8HX"
          }
        ]
      },
      "maintainers": [
        {
          "name": "naltatis",
          "email": "michael@geers.tv"
        }
      ],
      "directories": {}
    },
    "0.0.13": {
      "name": "node-sprite",
      "version": "0.0.13",
      "author": {
        "name": "naltatis"
      },
      "repository": {
        "type": "git",
        "url": "git://github.com/naltatis/node-sprite.git"
      },
      "dependencies": {
        "coffee-script": "1.3.1",
        "underscore": "1.3.1",
        "imagemagick": "http://github.com/naltatis/node-imagemagick/tarball/master",
        "seq": "0.3.5",
        "watch": "0.5.0"
      },
      "devDependencies": {
        "expresso": "0.9.0",
        "stylus": "0.19.2"
      },
      "main": "./index.coffee",
      "engines": {
        "node": "> 0.4.x"
      },
      "_npmUser": {
        "name": "naltatis",
        "email": "michael@geers.tv"
      },
      "_id": "node-sprite@0.0.13",
      "optionalDependencies": {},
      "_engineSupported": true,
      "_npmVersion": "1.1.21",
      "_nodeVersion": "v0.6.18",
      "_defaultsLoaded": true,
      "dist": {
        "shasum": "89055dcce3b35d62e7bc0101d8a0f9c86d4c3dad",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/node-sprite/-/node-sprite-0.0.13.tgz",
        "integrity": "sha512-trClG2+KeRgj1h0UXKw4Gi9/qKd/p4DFr2ZiSTb4itapyeCSZ4MrOd9EufdcDvM48kKCljpAF6kV3Jo61/5i8A==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIQCBtjOplOCTTf8xg2uz2B6W5b8TF5iXCnPcbu+zUtLhrAIgEw+pqpEDat9jY5syDkkskAtVP9YX13dY9rtdzJQSnvE="
          }
        ]
      },
      "maintainers": [
        {
          "name": "naltatis",
          "email": "michael@geers.tv"
        }
      ],
      "directories": {}
    },
    "0.0.14": {
      "name": "node-sprite",
      "version": "0.0.14",
      "author": {
        "name": "naltatis"
      },
      "repository": {
        "type": "git",
        "url": "git://github.com/naltatis/node-sprite.git"
      },
      "dependencies": {
        "coffee-script": "1.3.1",
        "underscore": "1.3.1",
        "imagemagick": "http://github.com/naltatis/node-imagemagick/tarball/master",
        "seq": "0.3.5",
        "watch": "0.5.0"
      },
      "devDependencies": {
        "expresso": "0.9.0",
        "stylus": "0.19.2"
      },
      "main": "./index.coffee",
      "engines": {
        "node": "> 0.8.x"
      },
      "readme": "status\n------\nin an experimental state, but I'm working on it ...\n\ntodos\n-----\n- generating tightly packed sprites based on [Matt Perdeck's great article](http://www.codeproject.com/KB/web-image/rectanglepacker.aspx)\n",
      "_id": "node-sprite@0.0.14",
      "description": "status ------ in an experimental state, but I'm working on it ...",
      "dist": {
        "shasum": "55fa713343d0a4f7be4403f04922b36ece96aef7",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/node-sprite/-/node-sprite-0.0.14.tgz",
        "integrity": "sha512-4v1mcwpO40jNb6J4LppeX8VjsBB1cHkqB2VQi10HMl5zkwONh55vG69UAmzedZ70NdljK3L5AfxRLKTDDqqCeQ==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEYCIQCAujBXAcBvW8bBzE7oucok3EB0JIe9B4cMiR/7S/ib7QIhAL+vwOipu28nqptNkK2qYIa9Gm5WrxTSVSklPougo/Oi"
          }
        ]
      },
      "_npmVersion": "1.1.59",
      "_npmUser": {
        "name": "naltatis",
        "email": "michael@geers.tv"
      },
      "maintainers": [
        {
          "name": "naltatis",
          "email": "michael@geers.tv"
        }
      ],
      "directories": {}
    },
    "0.0.16": {
      "name": "node-sprite",
      "version": "0.0.16",
      "author": {
        "name": "naltatis"
      },
      "keywords": [
        "css",
        "sprite",
        "sprites",
        "stylus",
        "retina",
        "images"
      ],
      "repository": {
        "type": "git",
        "url": "git://github.com/naltatis/node-sprite.git"
      },
      "dependencies": {
        "coffee-script": "1.3.3",
        "underscore": "1.3.1",
        "imagemagick": "http://github.com/naltatis/node-imagemagick/tarball/master",
        "seq": "0.3.5",
        "watch": "0.5.1"
      },
      "devDependencies": {
        "expresso": "0.9.2",
        "stylus": "0.29.0"
      },
      "scripts": {
        "test": "expresso test/*"
      },
      "main": "./index.coffee",
      "engines": {
        "node": "> 0.8.x"
      },
      "readme": "# node-sprite\nA CSS Sprite Generation Library with Stylus and Retina Support.\n\n## Requirements\nIt uses **ImageMagick** for its graphics operations. So make sure you have the `convert` and `identify` command available in your envirnoment.\n\n## Usage\n\n`node-sprite` exports three functions: `sprite`, `sprites` and `stylus`. The following examples show how to use them.\n\n### Example Directory Stucture\n\n```\n- app.js\n- images/\n  - global/\n    - bar.jpg     // 200x100px image\n    - foo.png     // 10x50px   image\n  - animals/\n    - cat.gif     // 64x64px   image\n    - duck.png    // 64x64px   image\n    - mouse.gif   // 64x64px   image\n```\n\n## Single Sprite\n\n```javascript\nvar sprite = require('node-sprite');\n\nsprite.sprite('global', {path: './images'}, function(err, globalSprite) {\n  console.log(globalSprite.filename())\n  console.log('foo', globalSprite.image('foo'));\n  console.log('bar', globalSprite.image('bar'));\n});\n```\n\nThis code will generate a sprite image named `./images/global-[checksum].png` and output the following:\n\n    global-45c81.png\n    foo, {width: 200, height: 100, positionX: 0, positionY: 52}\n    bar, {width: 64, height: 64, positionX: 0, positionY: 0}\n\n## Multiple Sprites\n\n```javascript\nvar sprite = require('node-sprite');\n\nsprite.sprites({path: './images'}, function(err, result) {\n  var globalSprite = result['global'];\n  var animalsSprite = result['animals'];\n  console.log(globalSprite.filename());\n  console.log(animalsSprite.filename());\n  console.log('animals/duck', animalsSprite.image('duck'));\n});\n```\n\nThis code will generate a sprite image for every subfolder of `./images`. The images are named `./images/[folder]-[checksum].png`.\n\n    global-45c81.png\n    animals-b775d.png\n    animals/duck, {width: 10, height: 50, positionX: 0, positionY: 66}\n\n## Stylus Integration\n\n```\n// screen.styl\n#duck\n  sprite animal duck\n#mouse\n  sprite global mouse false\n```\n\nThe `sprite` function generates the correct `background` image and position for the specified image. By default it also adds `width` and `height` properties. You can prevent this behaviour by setting the third optional parameter to `false`.\n\n```css\n/* screen.css */\n#duck {\n  background: url('./images/animals-b775d.png') 0px -66px;\n  width: 64px;\n  height: 64px;\n}\n#mouse {\n  background: url('./images/animals-b775d.png') 0px -132px;\n}\n```\n\nThe `sprite.stylus` function behaves similar to `sprite.sprites`, but it returns a helper object, with provides a stylus helper function `helper.fn`.\n\n```javascript\nvar sprite = require('node-sprite');\nvar stylus = require('stylus');\n\nvar str = require(\"fs\").readFileSync(\"screen.styl\")\n\nsprite.stylus({path: './images'}, function (err, helper) {\n  stylus(str)\n    .set('filename', 'screen.styl')\n    .define('sprite', helper.fn)\n    .render(function (err, css) {\n      console.log(css);\n    });\n});\n```\n\n## Retina / High Resolution Sprite Support\n\nnode-sprite has a special mode for high resolution sprites. When your sprite folder ends with `-2x` it will be treated differently.\n\n### Basic Example\n\n    animals-2x/\n    - cat.gif    // 128x128px image\n    - duck.png   // 128x128px image\n\nAlthough we have 128x128px images. The elements should only have the size of 64x64px and the background has to be scaled down.\n\n```\n// screen.styl\n#duck\n  sprite(animal-2x, duck)\n  background-size sprite-dimensions(animal-2x, name)\n```\n\nwill be transformed to\n\n```css\n/* screen.css */\n#duck {\n  background: url('./images/animals-2x-c575d.png') 0px -66px;\n  width: 64px;\n  height: 64px;\n  background-size: 64px 194px;\n}\n```\n\nFor this to work you have to add the `sprite-dimensions` helper in you stylus configuration:\n\n`.define('sprite-dimensions', helper.dimensionsFn)`\n\n### Retina Mixin\n\nIf you want to have a retina and a non-retina sprite it makes sense to create a mixin like this one:\n\n```\n// screen.styl\nretina-sprite(folder, name)\n  sprite(folder, name)\n  hidpi = s(\"(min--moz-device-pixel-ratio: 1.5), (-o-min-device-pixel-ratio: 3/2), (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 1.5dppx)\");\n  @media hidpi\n    sprite(folder+\"-2x\", name, false)\n    background-size sprite-dimensions(folder+\"-2x\", name)\n\n#duck\n  retina-sprite animals duck\n```\n\nThis will generate the following css code:\n\n```css\n#duck {\n  background: url('./images/animals-b775d.png') 0px -66px;\n  width: 64px;\n  height: 64px;\n}\n@media (min--moz-device-pixel-ratio: 1.5), (-o-min-device-pixel-ratio: 3/2), (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 1.5dppx) {\n  #duck {\n    background: url('./images/animals-2x-c575d.png') 0px -66px;\n    background-size: 64px 194px;\n  }\n}\n```\n\n*Note: Alle images in the retina folder should have **even** height and width pixels.*\n\n## Options\n\nAll three functions accept an optional options parameter.\n\n```javascript\n{\n  path: './images',     // sprite directory\n  padding: 2,           // pixels between images\n  httpPath: './images', // used be the stylus helper\n  watch: false,         // auto update sprite in background\n  retina: '-2x'         // postfix for retina sprite folders\n}\n```\n\n## Auto Update on Image Change\n\nIf you pass `watch: true` as an option node-sprite will watch the sprite folders and regenerate the sprite when something changes.\n\nYou can subscribe to the `update` event of the `sprite` or `helper` object to get notified.\n\n```javascript\nvar generateCss = function () {...};\n\nsprite.stylus({watch: true}, function (err, helper) {\n  generateCss();\n  helper.on(\"update\", generateCss);\n});\n```\n\n## Structural Sprite Information / JSON\n\nnode-sprite will put a `./images/[folder].json` next to every generated sprite image. This file contains structural information of the generated sprite. This files can be used by other modules or applications.\n\nThey are also usefull if you running your application on a production machine without ImageMagick. In this case node-sprite will fallback to this data.\n\n```javascript\n{\n  \"name\": \"animals\",\n  \"checksum\": \"b775d6fa89ad809d7700c32b491c50f0\",\n  \"shortsum\": \"b775d\",\n  \"images\": [\n    {\n      \"name\": \"cat\",\n      \"filename\": \"cat.gif\",\n      \"checksum\": \"25ce6895f8ed03aa127123430997bbdf\",\n      \"width\": 64,\n      \"height\": 64,\n      \"positionX\": 0,\n      \"positionY\": 0\n    },\n    ...\n  ]\n}\n```\n\n## License\nThe MIT License",
      "_id": "node-sprite@0.0.16",
      "description": "A CSS Sprite Generation Library with Stylus and Retina Support.",
      "dist": {
        "shasum": "2440728057d131ee7adc2e0c935c974f99fd1112",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/node-sprite/-/node-sprite-0.0.16.tgz",
        "integrity": "sha512-L1WZWOBzJLxKpdDZidB+Ta+9rXWkamXH/I6Yh/WMMPGYADrRhinBrkyabi13Wd9+aQMuQxugMyPMHifBEce9/A==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIFMviEZkf6KqFBH+ZMDSXAbHZa9fBqcov5Lh6/8Cy23kAiEA+kEMEsoKkST2bDUVkDWJURpyiD50LZezDqR+U+AdzqI="
          }
        ]
      },
      "_npmVersion": "1.1.59",
      "_npmUser": {
        "name": "naltatis",
        "email": "michael@geers.tv"
      },
      "maintainers": [
        {
          "name": "naltatis",
          "email": "michael@geers.tv"
        }
      ]
    },
    "0.1.0": {
      "name": "node-sprite",
      "version": "0.1.0",
      "author": {
        "name": "naltatis"
      },
      "keywords": [
        "css",
        "sprite",
        "sprites",
        "stylus",
        "retina",
        "images"
      ],
      "repository": {
        "type": "git",
        "url": "git://github.com/naltatis/node-sprite.git"
      },
      "dependencies": {
        "coffee-script": "1.3.3",
        "underscore": "1.3.1",
        "imagemagick": "http://github.com/naltatis/node-imagemagick/tarball/master",
        "seq": "0.3.5",
        "watch": "0.5.1"
      },
      "devDependencies": {
        "expresso": "0.9.2",
        "stylus": "0.29.0"
      },
      "scripts": {
        "test": "expresso test/*"
      },
      "main": "./index.js",
      "engines": {
        "node": "> 0.8.x"
      },
      "readme": "# node-sprite\nA CSS Sprite Generation Library with Stylus and Retina Support.\n\n## Requirements\nIt uses **ImageMagick** for its graphics operations. So make sure you have the `convert` and `identify` command available in your envirnoment.\n\n## Usage\n\n`node-sprite` exports three functions: `sprite`, `sprites` and `stylus`. The following examples show how to use them.\n\n### Example Directory Stucture\n\n```\n- app.js\n- images/\n  - global/\n    - bar.jpg     // 200x100px image\n    - foo.png     // 10x50px   image\n  - animals/\n    - cat.gif     // 64x64px   image\n    - duck.png    // 64x64px   image\n    - mouse.gif   // 64x64px   image\n```\n\n## Single Sprite\n\n```javascript\nvar sprite = require('node-sprite');\n\nsprite.sprite('global', {path: './images'}, function(err, globalSprite) {\n  console.log(globalSprite.filename())\n  console.log('foo', globalSprite.image('foo'));\n  console.log('bar', globalSprite.image('bar'));\n});\n```\n\nThis code will generate a sprite image named `./images/global-[checksum].png` and output the following:\n\n    global-45c81.png\n    foo, {width: 200, height: 100, positionX: 0, positionY: 52}\n    bar, {width: 64, height: 64, positionX: 0, positionY: 0}\n\n## Multiple Sprites\n\n```javascript\nvar sprite = require('node-sprite');\n\nsprite.sprites({path: './images'}, function(err, result) {\n  var globalSprite = result['global'];\n  var animalsSprite = result['animals'];\n  console.log(globalSprite.filename());\n  console.log(animalsSprite.filename());\n  console.log('animals/duck', animalsSprite.image('duck'));\n});\n```\n\nThis code will generate a sprite image for every subfolder of `./images`. The images are named `./images/[folder]-[checksum].png`.\n\n    global-45c81.png\n    animals-b775d.png\n    animals/duck, {width: 10, height: 50, positionX: 0, positionY: 66}\n\n## Stylus Integration\n\n```\n// screen.styl\n#duck\n  sprite animal duck\n#mouse\n  sprite global mouse false\n```\n\nThe `sprite` function generates the correct `background` image and position for the specified image. By default it also adds `width` and `height` properties. You can prevent this behaviour by setting the third optional parameter to `false`.\n\n```css\n/* screen.css */\n#duck {\n  background: url('./images/animals-b775d.png') 0px -66px;\n  width: 64px;\n  height: 64px;\n}\n#mouse {\n  background: url('./images/animals-b775d.png') 0px -132px;\n}\n```\n\nThe `sprite.stylus` function behaves similar to `sprite.sprites`, but it returns a helper object, with provides a stylus helper function `helper.fn`.\n\n```javascript\nvar sprite = require('node-sprite');\nvar stylus = require('stylus');\n\nvar str = require(\"fs\").readFileSync(\"screen.styl\")\n\nsprite.stylus({path: './images'}, function (err, helper) {\n  stylus(str)\n    .set('filename', 'screen.styl')\n    .define('sprite', helper.fn)\n    .render(function (err, css) {\n      console.log(css);\n    });\n});\n```\n\n## Retina / High Resolution Sprite Support\n\nnode-sprite has a special mode for high resolution sprites. When your sprite folder ends with `-2x` it will be treated differently.\n\n### Basic Example\n\n    animals-2x/\n    - cat.gif    // 128x128px image\n    - duck.png   // 128x128px image\n\nAlthough we have 128x128px images. The elements should only have the size of 64x64px and the background has to be scaled down.\n\n```\n// screen.styl\n#duck\n  sprite(animal-2x, duck)\n  background-size sprite-dimensions(animal-2x, name)\n```\n\nwill be transformed to\n\n```css\n/* screen.css */\n#duck {\n  background: url('./images/animals-2x-c575d.png') 0px -66px;\n  width: 64px;\n  height: 64px;\n  background-size: 64px 194px;\n}\n```\n\nFor this to work you have to add the `sprite-dimensions` helper in you stylus configuration:\n\n`.define('sprite-dimensions', helper.dimensionsFn)`\n\n### Retina Mixin\n\nIf you want to have a retina and a non-retina sprite it makes sense to create a mixin like this one:\n\n```\n// screen.styl\nretina-sprite(folder, name)\n  sprite(folder, name)\n  hidpi = s(\"(min--moz-device-pixel-ratio: 1.5), (-o-min-device-pixel-ratio: 3/2), (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 1.5dppx)\");\n  @media hidpi\n    sprite(folder+\"-2x\", name, false)\n    background-size sprite-dimensions(folder+\"-2x\", name)\n\n#duck\n  retina-sprite animals duck\n```\n\nThis will generate the following css code:\n\n```css\n#duck {\n  background: url('./images/animals-b775d.png') 0px -66px;\n  width: 64px;\n  height: 64px;\n}\n@media (min--moz-device-pixel-ratio: 1.5), (-o-min-device-pixel-ratio: 3/2), (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 1.5dppx) {\n  #duck {\n    background: url('./images/animals-2x-c575d.png') 0px -66px;\n    background-size: 64px 194px;\n  }\n}\n```\n\n*Note: All images in the retina folder should have even height and width pixels.*\n\n## Options\n\nAll three functions accept an optional options parameter.\n\n```javascript\n{\n  path: './images',     // sprite directory\n  padding: 2,           // pixels between images\n  httpPath: './images', // used be the stylus helper\n  watch: false,         // auto update sprite in background\n  retina: '-2x'         // postfix for retina sprite folders\n}\n```\n\n## Auto Update on Image Change\n\nIf you pass `watch: true` as an option node-sprite will watch the sprite folders and regenerate the sprite when something changes.\n\nYou can subscribe to the `update` event of the `sprite` or `helper` object to get notified.\n\n```javascript\nvar generateCss = function () {...};\n\nsprite.stylus({watch: true}, function (err, helper) {\n  generateCss();\n  helper.on(\"update\", generateCss);\n});\n```\n\n## Structural Sprite Information / JSON\n\nnode-sprite will put a `./images/[folder].json` next to every generated sprite image. This file contains structural information of the generated sprite. This files can be used by other modules or applications.\n\nThey are also usefull if you running your application on a production machine without ImageMagick. In this case node-sprite will fallback to this data.\n\n```javascript\n{\n  \"name\": \"animals\",\n  \"checksum\": \"b775d6fa89ad809d7700c32b491c50f0\",\n  \"shortsum\": \"b775d\",\n  \"images\": [\n    {\n      \"name\": \"cat\",\n      \"filename\": \"cat.gif\",\n      \"checksum\": \"25ce6895f8ed03aa127123430997bbdf\",\n      \"width\": 64,\n      \"height\": 64,\n      \"positionX\": 0,\n      \"positionY\": 0\n    },\n    ...\n  ]\n}\n```\n\n## License\nThe MIT License",
      "_id": "node-sprite@0.1.0",
      "description": "A CSS Sprite Generation Library with Stylus and Retina Support.",
      "dist": {
        "shasum": "91c7d85ce81218df8e347cea9241b2302208e4d8",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/node-sprite/-/node-sprite-0.1.0.tgz",
        "integrity": "sha512-sSrlQjNKYEk1ps4PdKwHCPzquQDo4p2tB+59gOUJJ9LLr1KOKJAjGMm14ozKXAhGG1Cw2E+i77U894jw9/ksww==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIQDyTlbnsFCh6VWHH+QnXudQBMCu8mgDJ3spheWLLx7bVgIgJGznrxDrX0N1X6xC5uD5V9OWZFfh9cGVBtUTRIL7XEQ="
          }
        ]
      },
      "_npmVersion": "1.1.59",
      "_npmUser": {
        "name": "naltatis",
        "email": "michael@geers.tv"
      },
      "maintainers": [
        {
          "name": "naltatis",
          "email": "michael@geers.tv"
        }
      ]
    },
    "0.1.1": {
      "name": "node-sprite",
      "version": "0.1.1",
      "author": {
        "name": "naltatis"
      },
      "keywords": [
        "css",
        "sprite",
        "sprites",
        "stylus",
        "retina",
        "images"
      ],
      "repository": {
        "type": "git",
        "url": "git://github.com/naltatis/node-sprite.git"
      },
      "dependencies": {
        "coffee-script": "1.3.3",
        "underscore": "1.3.1",
        "imagemagick": "http://github.com/naltatis/node-imagemagick/tarball/master",
        "seq": "0.3.5",
        "watch": "0.5.1"
      },
      "devDependencies": {
        "expresso": "0.9.2",
        "stylus": "0.29.0"
      },
      "scripts": {
        "test": "expresso test/*"
      },
      "main": "./index.js",
      "engines": {
        "node": "> 0.8.x"
      },
      "readme": "# node-sprite\nA CSS Sprite Generation Library with Stylus and Retina Support.\n\n## Requirements\nIt uses **ImageMagick** for its graphics operations. So make sure you have the `convert` and `identify` command available in your envirnoment.\n\n## Usage\n\n`node-sprite` exports three functions: `sprite`, `sprites` and `stylus`. The following examples show how to use them.\n\n### Example Directory Stucture\n\n```\n- app.js\n- images/\n  - global/\n    - bar.jpg     // 200x100px image\n    - foo.png     // 10x50px   image\n  - animals/\n    - cat.gif     // 64x64px   image\n    - duck.png    // 64x64px   image\n    - mouse.gif   // 64x64px   image\n```\n\n## Single Sprite\n\n```javascript\nvar sprite = require('node-sprite');\n\nsprite.sprite('global', {path: './images'}, function(err, globalSprite) {\n  console.log(globalSprite.filename())\n  console.log('foo', globalSprite.image('foo'));\n  console.log('bar', globalSprite.image('bar'));\n});\n```\n\nThis code will generate a sprite image named `./images/global-[checksum].png` and output the following:\n\n    global-45c81.png\n    foo, {width: 200, height: 100, positionX: 0, positionY: 52}\n    bar, {width: 64, height: 64, positionX: 0, positionY: 0}\n\n## Multiple Sprites\n\n```javascript\nvar sprite = require('node-sprite');\n\nsprite.sprites({path: './images'}, function(err, result) {\n  var globalSprite = result['global'];\n  var animalsSprite = result['animals'];\n  console.log(globalSprite.filename());\n  console.log(animalsSprite.filename());\n  console.log('animals/duck', animalsSprite.image('duck'));\n});\n```\n\nThis code will generate a sprite image for every subfolder of `./images`. The images are named `./images/[folder]-[checksum].png`.\n\n    global-45c81.png\n    animals-b775d.png\n    animals/duck, {width: 10, height: 50, positionX: 0, positionY: 66}\n\n## Stylus Integration\n\n```\n// screen.styl\n#duck\n  sprite animal duck\n#mouse\n  sprite global mouse false\n```\n\nThe `sprite` function generates the correct `background` image and position for the specified image. By default it also adds `width` and `height` properties. You can prevent this behaviour by setting the third optional parameter to `false`.\n\n```css\n/* screen.css */\n#duck {\n  background: url('./images/animals-b775d.png') 0px -66px;\n  width: 64px;\n  height: 64px;\n}\n#mouse {\n  background: url('./images/animals-b775d.png') 0px -132px;\n}\n```\n\nThe `sprite.stylus` function behaves similar to `sprite.sprites`, but it returns a helper object, with provides a stylus helper function `helper.fn`.\n\n```javascript\nvar sprite = require('node-sprite');\nvar stylus = require('stylus');\n\nvar str = require(\"fs\").readFileSync(\"screen.styl\")\n\nsprite.stylus({path: './images'}, function (err, helper) {\n  stylus(str)\n    .set('filename', 'screen.styl')\n    .define('sprite', helper.fn)\n    .render(function (err, css) {\n      console.log(css);\n    });\n});\n```\n\n## Retina / High Resolution Sprite Support\n\nnode-sprite has a special mode for high resolution sprites. When your sprite folder ends with `-2x` it will be treated differently.\n\n### Basic Example\n\n    animals-2x/\n    - cat.gif    // 128x128px image\n    - duck.png   // 128x128px image\n\nAlthough we have 128x128px images. The elements should only have the size of 64x64px and the background has to be scaled down.\n\n```\n// screen.styl\n#duck\n  sprite(animal-2x, duck)\n  background-size sprite-dimensions(animal-2x, name)\n```\n\nwill be transformed to\n\n```css\n/* screen.css */\n#duck {\n  background: url('./images/animals-2x-c575d.png') 0px -66px;\n  width: 64px;\n  height: 64px;\n  background-size: 64px 194px;\n}\n```\n\nFor this to work you have to add the `sprite-dimensions` helper in you stylus configuration:\n\n`.define('sprite-dimensions', helper.dimensionsFn)`\n\n### Retina Mixin\n\nIf you want to have a retina and a non-retina sprite it makes sense to create a mixin like this one:\n\n```\n// screen.styl\nretina-sprite(folder, name)\n  sprite(folder, name)\n  hidpi = s(\"(min--moz-device-pixel-ratio: 1.5), (-o-min-device-pixel-ratio: 3/2), (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 1.5dppx)\");\n  @media hidpi\n    sprite(folder+\"-2x\", name, false)\n    background-size sprite-dimensions(folder+\"-2x\", name)\n\n#duck\n  retina-sprite animals duck\n```\n\nThis will generate the following css code:\n\n```css\n#duck {\n  background: url('./images/animals-b775d.png') 0px -66px;\n  width: 64px;\n  height: 64px;\n}\n@media (min--moz-device-pixel-ratio: 1.5), (-o-min-device-pixel-ratio: 3/2), (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 1.5dppx) {\n  #duck {\n    background: url('./images/animals-2x-c575d.png') 0px -66px;\n    background-size: 64px 194px;\n  }\n}\n```\n\n*Note: All images in the retina folder should have even height and width pixels.*\n\n## Options\n\nAll three functions accept an optional options parameter.\n\n```javascript\n{\n  path: './images',     // sprite directory\n  padding: 2,           // pixels between images\n  httpPath: './images', // used be the stylus helper\n  watch: false,         // auto update sprite in background\n  retina: '-2x'         // postfix for retina sprite folders\n}\n```\n\n## Auto Update on Image Change\n\nIf you pass `watch: true` as an option node-sprite will watch the sprite folders and regenerate the sprite when something changes.\n\nYou can subscribe to the `update` event of the `sprite` or `helper` object to get notified.\n\n```javascript\nvar generateCss = function () {...};\n\nsprite.stylus({watch: true}, function (err, helper) {\n  generateCss();\n  helper.on(\"update\", generateCss);\n});\n```\n\n## Structural Sprite Information / JSON\n\nnode-sprite will put a `./images/[folder].json` next to every generated sprite image. This file contains structural information of the generated sprite. This files can be used by other modules or applications.\n\nThey are also usefull if you running your application on a production machine without ImageMagick. In this case node-sprite will fallback to this data.\n\n```javascript\n{\n  \"name\": \"animals\",\n  \"checksum\": \"b775d6fa89ad809d7700c32b491c50f0\",\n  \"shortsum\": \"b775d\",\n  \"images\": [\n    {\n      \"name\": \"cat\",\n      \"filename\": \"cat.gif\",\n      \"checksum\": \"25ce6895f8ed03aa127123430997bbdf\",\n      \"width\": 64,\n      \"height\": 64,\n      \"positionX\": 0,\n      \"positionY\": 0\n    },\n    ...\n  ]\n}\n```\n\n## License\nThe MIT License",
      "_id": "node-sprite@0.1.1",
      "description": "A CSS Sprite Generation Library with Stylus and Retina Support.",
      "dist": {
        "shasum": "3dced3cda6ee704c26ea6f72dbc5dbb67eb985a9",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/node-sprite/-/node-sprite-0.1.1.tgz",
        "integrity": "sha512-bDNJjtgzOM/C+4V/1aN89+YKB6PVggoBcQ7JXSvduOIw/SHFUcq6OzgBAvZgDZ+w0Xgjb8pznMLCg7jELAOjUQ==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIQDIw546XpUnJXaCQX/4V4a94ruuxx7q5twiT6N83/hVjQIgAcmg6djpb8cAaAIYOl6wsWORYTt2MnsgJ2VEx839Lio="
          }
        ]
      },
      "_npmVersion": "1.1.59",
      "_npmUser": {
        "name": "naltatis",
        "email": "michael@geers.tv"
      },
      "maintainers": [
        {
          "name": "naltatis",
          "email": "michael@geers.tv"
        }
      ]
    },
    "0.1.2": {
      "name": "node-sprite",
      "version": "0.1.2",
      "author": {
        "name": "naltatis"
      },
      "keywords": [
        "css",
        "sprite",
        "sprites",
        "stylus",
        "retina",
        "images"
      ],
      "repository": {
        "type": "git",
        "url": "git://github.com/naltatis/node-sprite.git"
      },
      "dependencies": {
        "coffee-script": "1.3.3",
        "underscore": "1.3.1",
        "imagemagick": "http://github.com/naltatis/node-imagemagick/tarball/master",
        "seq": "0.3.5",
        "watch": "0.5.1"
      },
      "devDependencies": {
        "expresso": "0.9.2",
        "stylus": "0.29.0"
      },
      "scripts": {
        "test": "expresso test/*"
      },
      "main": "./index.js",
      "engines": {
        "node": "> 0.8.x"
      },
      "readme": "[![Build Status](https://secure.travis-ci.org/naltatis/node-sprite.png)](http://travis-ci.org/naltatis/node-sprite)\n\n# A node.js Sprite Library with Stylus and Retina Support\n\n## Requirements\n`node-sprite` uses **ImageMagick** for its graphics operations. So make sure you have the `convert` and `identify` command available in your envirnoment.\n\n## Usage\n\nThere a three exported functions: `sprite`, `sprites` and `stylus`. The following examples show how to use them.\n\n### Example Directory Stucture\n\n```\n- app.js\n- images/\n  - global/\n    - bar.jpg     // 200x100px image\n    - foo.png     // 10x50px   image\n  - animals/\n    - cat.gif     // 64x64px   image\n    - duck.png    // 64x64px   image\n    - mouse.gif   // 64x64px   image\n```\n\n## Single Sprite\n\n```javascript\nvar sprite = require('node-sprite');\n\nsprite.sprite('global', {path: './images'}, function(err, globalSprite) {\n  console.log(globalSprite.filename())\n  console.log('foo', globalSprite.image('foo'));\n  console.log('bar', globalSprite.image('bar'));\n});\n```\n\nThis code will generate a sprite image named `./images/global-[checksum].png` and output the following:\n\n    global-45c81.png\n    foo, {width: 200, height: 100, positionX: 0, positionY: 52}\n    bar, {width: 64, height: 64, positionX: 0, positionY: 0}\n\n## Multiple Sprites\n\n```javascript\nvar sprite = require('node-sprite');\n\nsprite.sprites({path: './images'}, function(err, result) {\n  var globalSprite = result['global'];\n  var animalsSprite = result['animals'];\n  console.log(globalSprite.filename());\n  console.log(animalsSprite.filename());\n  console.log('animals/duck', animalsSprite.image('duck'));\n});\n```\n\nThis code will generate a sprite image for every subfolder of `./images`. The images are named `./images/[folder]-[checksum].png`.\n\n    global-45c81.png\n    animals-b775d.png\n    animals/duck, {width: 10, height: 50, positionX: 0, positionY: 66}\n\n## Stylus Integration\n\n```\n// screen.styl\n#duck\n  sprite animal duck\n#mouse\n  sprite global mouse false\n```\n\nThe `sprite` function generates the correct `background` image and position for the specified image. By default it also adds `width` and `height` properties. You can prevent this behaviour by setting the third optional parameter to `false`.\n\n```css\n/* screen.css */\n#duck {\n  background: url('./images/animals-b775d.png') 0px -66px;\n  width: 64px;\n  height: 64px;\n}\n#mouse {\n  background: url('./images/animals-b775d.png') 0px -132px;\n}\n```\n\nThe `sprite.stylus` function behaves similar to `sprite.sprites`, but it returns a helper object, with provides a stylus helper function `helper.fn`.\n\n```javascript\nvar sprite = require('node-sprite');\nvar stylus = require('stylus');\n\nvar str = require(\"fs\").readFileSync(\"screen.styl\")\n\nsprite.stylus({path: './images'}, function (err, helper) {\n  stylus(str)\n    .set('filename', 'screen.styl')\n    .define('sprite', helper.fn)\n    .render(function (err, css) {\n      console.log(css);\n    });\n});\n```\n\n## Retina / High Resolution Sprite Support\n\nnode-sprite has a special mode for high resolution sprites. When your sprite folder ends with `-2x` it will be treated differently.\n\n### Basic Example\n\n    animals-2x/\n    - cat.gif    // 128x128px image\n    - duck.png   // 128x128px image\n\nAlthough we have 128x128px images. The elements should only have the size of 64x64px and the background has to be scaled down.\n\n```\n// screen.styl\n#duck\n  sprite(animal-2x, duck)\n  background-size sprite-dimensions(animal-2x, name)\n```\n\nwill be transformed to\n\n```css\n/* screen.css */\n#duck {\n  background: url('./images/animals-2x-c575d.png') 0px -66px;\n  width: 64px;\n  height: 64px;\n  background-size: 64px 194px;\n}\n```\n\nFor this to work you have to add the `sprite-dimensions` helper in you stylus configuration:\n\n`.define('sprite-dimensions', helper.dimensionsFn)`\n\n### Retina Mixin\n\nIf you want to have a retina and a non-retina sprite it makes sense to create a mixin like this one:\n\n```\n// screen.styl\nretina-sprite(folder, name)\n  sprite(folder, name)\n  hidpi = s(\"(min--moz-device-pixel-ratio: 1.5), (-o-min-device-pixel-ratio: 3/2), (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 1.5dppx)\");\n  @media hidpi\n    sprite(folder+\"-2x\", name, false)\n    background-size sprite-dimensions(folder+\"-2x\", name)\n\n#duck\n  retina-sprite animals duck\n```\n\nThis will generate the following css code:\n\n```css\n#duck {\n  background: url('./images/animals-b775d.png') 0px -66px;\n  width: 64px;\n  height: 64px;\n}\n@media (min--moz-device-pixel-ratio: 1.5), (-o-min-device-pixel-ratio: 3/2), (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 1.5dppx) {\n  #duck {\n    background: url('./images/animals-2x-c575d.png') 0px -66px;\n    background-size: 64px 194px;\n  }\n}\n```\n\n*Note: All images in the retina folder should have even height and width pixels.*\n\n## Options\n\nAll three functions accept an optional options parameter.\n\n```javascript\n{\n  path: './images',     // sprite directory\n  padding: 2,           // pixels between images\n  httpPath: './images', // used be the stylus helper\n  watch: false,         // auto update sprite in background\n  retina: '-2x'         // postfix for retina sprite folders\n}\n```\n\n## Auto Update on Image Change\n\nIf you pass `watch: true` as an option node-sprite will watch the sprite folders and regenerate the sprite when something changes.\n\nYou can subscribe to the `update` event of the `sprite` or `helper` object to get notified.\n\n```javascript\nvar generateCss = function () {...};\n\nsprite.stylus({watch: true}, function (err, helper) {\n  generateCss();\n  helper.on(\"update\", generateCss);\n});\n```\n\n## Structural Sprite Information / JSON\n\nnode-sprite will put a `./images/[folder].json` next to every generated sprite image. This file contains structural information of the generated sprite. This files can be used by other modules or applications.\n\nThey are also usefull if you running your application on a production machine without ImageMagick. In this case node-sprite will fallback to this data.\n\n```javascript\n{\n  \"name\": \"animals\",\n  \"checksum\": \"b775d6fa89ad809d7700c32b491c50f0\",\n  \"shortsum\": \"b775d\",\n  \"images\": [\n    {\n      \"name\": \"cat\",\n      \"filename\": \"cat.gif\",\n      \"checksum\": \"25ce6895f8ed03aa127123430997bbdf\",\n      \"width\": 64,\n      \"height\": 64,\n      \"positionX\": 0,\n      \"positionY\": 0\n    },\n    ...\n  ]\n}\n```\n\n## Contribute\n\nFeel free to post issues or pull request.\n\nYou can run the projects tests with the `npm test` command.\n\n## License\nThe MIT License",
      "readmeFilename": "README.md",
      "_id": "node-sprite@0.1.2",
      "description": "[![Build Status](https://secure.travis-ci.org/naltatis/node-sprite.png)](http://travis-ci.org/naltatis/node-sprite)",
      "dist": {
        "shasum": "7719c345c31b31fd40c6f263fdf68ed1d647931e",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/node-sprite/-/node-sprite-0.1.2.tgz",
        "integrity": "sha512-NBNqpsHuKHn8qjsVgIdQfiSEm/QATJYIvdN7SuROSzyRR15ZWKSyXNA1q5Uu9gpFmZ3r5NOjQ7+jariyinOMOQ==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIQCpRhtUQPe/oRF2Af3MncMUv1bpVpuGQx6oXtTp0jRgWAIgUgFvOghgX8V3VGuFL4gW+b3t3l16wZRcujxa1aC5nsw="
          }
        ]
      },
      "_from": ".",
      "_npmVersion": "1.2.10",
      "_npmUser": {
        "name": "naltatis",
        "email": "michael@geers.tv"
      },
      "maintainers": [
        {
          "name": "naltatis",
          "email": "michael@geers.tv"
        }
      ]
    }
  },
  "author": {
    "name": "naltatis"
  },
  "_rev": "41-a2c94a932bd88db1172e4653538bca67",
  "name": "node-sprite",
  "description": "[![Build Status](https://secure.travis-ci.org/naltatis/node-sprite.png)](http://travis-ci.org/naltatis/node-sprite)",
  "readme": "status\n------\nin an experimental state, but I'm working on it ...\n\ntodos\n-----\n- stylus integration\n- cache-busting\n- generating tightly packed sprites based on [Matt Perdeck's great article](http://www.codeproject.com/KB/web-image/rectanglepacker.aspx)\n",
  "time": {
    "modified": "2026-05-12T16:04:09.344Z",
    "created": "2012-02-20T13:44:40.692Z",
    "0.0.4": "2012-02-20T13:44:42.235Z",
    "0.0.5": "2012-03-09T11:45:49.936Z",
    "0.0.6": "2012-03-09T13:00:54.908Z",
    "0.0.7": "2012-05-10T11:29:44.404Z",
    "0.0.8": "2012-05-10T11:33:42.184Z",
    "0.0.9": "2012-05-14T12:42:55.850Z",
    "0.0.10": "2012-05-14T12:46:39.578Z",
    "0.0.11": "2012-05-14T12:55:50.414Z",
    "0.0.12": "2012-05-14T13:00:48.932Z",
    "0.0.13": "2012-05-29T12:30:35.188Z",
    "0.0.14": "2012-09-11T20:03:42.584Z",
    "0.0.16": "2012-10-06T22:05:39.791Z",
    "0.1.0": "2012-10-07T14:01:51.793Z",
    "0.1.1": "2012-10-07T14:20:45.014Z",
    "0.1.2": "2013-02-17T11:30:20.114Z"
  },
  "repository": {
    "type": "git",
    "url": "git://github.com/naltatis/node-sprite.git"
  }
}