Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 643 Bytes

README.md

File metadata and controls

26 lines (19 loc) · 643 Bytes

spritore

What's this?

This is a library that allows you to create sprites for Vector Tile maps with fewer settings than spritezero or spritesmith. Even svg files and other image files that cannot be converted properly by spritezero can be converted to Sprite (with some force).

Usage

const { generate } = require("@kartore/spritore")
const path = require("path")

generate({
  inputPath: path.join(__dirname, "input"),
  outputPath: path.join(__dirname, "output"),
  outputFileName: "sprite"
  
})

Installation

Requires nodejs v14.0.0 or greater.

$ npm install @kartore/spritore