@mmrtn/rwjs
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

rwjs

RenderWare library for TypeScript

TXD

import { ExportType, TXD } from 'rwjs';
import * as fs from 'fs';

const file = fs.readFileSync('./amyossb1.txd');

const txd = new TXD().fromBuffer(file);

const files = txd.export(ExportType.PNG);

if (files) {
    for (const file of files) {
        fs.writeFileSync(file.name, file.buffer, { encoding: 'binary' });
    }
}

Dependents (0)

Package Sidebar

Install

npm i @mmrtn/rwjs

Weekly Downloads

0

Version

1.0.0

License

ISC

Unpacked Size

115 kB

Total Files

72

Last publish

Collaborators

  • mmrtn