texturepacker-command-line

0.0.5 • Public • Published

A simple wrapper around the TexturePacker (https://www.codeandweb.com/texturepacker) command line tool for build integration. The command line tool must be installed and available on your PATH.

Any valid option can be passed into the main function, just convert it from --kebab-case to camelCase. Options that require no value, like multipack will have the true stripped from the command.

The path you specify needs to be specified relative to the script of execution. Check the npm script example in package.json for an example

Usage:

texturepacker.exec(path, options);
const texturepacker = require('texturepacker');

texturepacker.exec('imagefile', {
    format: 'phaser-json-hash',
    maxSize: 2048,
    scaleMode: 'Smooth',
    multipack: true
});

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.5
    197
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.5
    197
  • 0.0.4
    8
  • 0.0.3
    1
  • 0.0.1
    1

Package Sidebar

Install

npm i texturepacker-command-line

Weekly Downloads

207

Version

0.0.5

License

MIT

Unpacked Size

13.5 kB

Total Files

10

Last publish

Collaborators

  • strewhella