Instead of forcing people to use Node 8, you can simply replace two lines in decode-texture.js to solve the problem:
-
return { extension: 'jpg' , buffer: new Buffer(tex.bytes) }; => return { extension: 'jpg' , buffer: Buffer.from(tex.bytes) };
-
const buf = new Buffer(bytes); => const buf = Buffer.from(bytes);
Originally posted by @desmondCTNG in #3 (comment)