node package manager

adobe-swatch-exchange

adobe-swatch-exchange experimental

Encode/decode color palettes in Adobe's .ase format.

Usage

adobe-swatch-exchange

ase.decode(buffer)

Returns a JSON object representing the contents of the .ase file, for example:

{
  "version": "1.0",
  "groups": [],
  "colors": [{
    "name": "RGB Red",
    "model": "RGB",
    "color": [1, 0, 0],
    "type": "global"
  }, {
    "name": "RGB Yellow",
    "model": "RGB",
    "color": [1, 1, 0],
    "type": "global"
  }]
}

License

MIT. See LICENSE.md for details.