DominikGuzei / node-ase-utils

Node package to encode / decode Adobe Swatch Exchange Files (ASE)
MIT License
33 stars 4 forks source link

Warning: Trying to access beyond buffer length Use --force to continue. #1

Open mLihs opened 8 years ago

mLihs commented 8 years ago

Hi i got an error -> "Warning: Trying to access beyond buffer length Use --force to continue." if i'am using the this script as grunttask.

'use strict';

var ase = require('ase-utils'); var fs = require('fs');

module.exports = function (grunt) { grunt.registerMultiTask('colorTable', 'Generate colors files for sass.', function () { grunt.log.writeln('Hello, world.'); var buffer = fs.readFileSync('./test/test.ase'); var output = ase.decode(buffer) //grunt.log(ase.decode(buffer)); })

}

lazd commented 8 years ago

Hmm, is that the same test.ase from this repository? It shouldn't cause that particular error. Can you run grunt --stack and report back with the output?