sprites-extract
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

This package can extract and download images from TexturePacker spritesheets using the TexturePacker JSON data.

INSTALLATION

npm i sprites-extract

USAGE

1. Import the method `extractAndDownloadImages()`.
2. Call this method. Pass the paths of the TexturePacker spritesheet and JSON file as parameters (e.g., `extractAndDownloadImages("/path/to/spritesheet.png", "./path/to/spritesheet.json")`)

Note: It is intended to be used in a browser environment where the file is served to the browser.

Package Sidebar

Install

npm i sprites-extract

Weekly Downloads

28

Version

1.0.2

License

ISC

Unpacked Size

2.73 kB

Total Files

4

Last publish

Collaborators

  • shrikanth_m_a