Skip to content
This repository was archived by the owner on Aug 14, 2022. It is now read-only.

Please push these codes if they are error free. It stops the Deprecation Warning in Node 9. #67

@desmondCTNG

Description

@desmondCTNG

Instead of forcing people to use Node 8, you can simply replace two lines in decode-texture.js to solve the problem:

  1. return { extension: 'jpg' , buffer: new Buffer(tex.bytes) }; => return { extension: 'jpg' , buffer: Buffer.from(tex.bytes) };

  2. const buf = new Buffer(bytes); => const buf = Buffer.from(bytes);

Originally posted by @desmondCTNG in #3 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions