UNPKG

spritesheet-templates

Version:

Convert spritesheet data into CSS or CSS pre-processor data

12 lines (9 loc) 268 B
function jsonArrayTemplate(data) { // Stringify the array of sprites var sprites = data.sprites; var retStr = JSON.stringify(sprites, null, 4); // Return the stringified JSON return retStr; } // Export our JSON template module.exports = jsonArrayTemplate;