1.4.23 • Published 6 months ago

quail-wasm v1.4.23

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

Quail WASM

Quail WASM is a port of Quail to WebAssembly and meant to be used in the browser (node.js support not considered).

There is an example under examples/index.html and that can be run via npm install and npm start from this folder

The entrypoint for using this module is as follows

import { CreateQuail } from 'quail-wasm'

// Depending on where you are hosting quail.wasm
CreateQuail('/static/quail.wasm').then(q => {
    const { quail, fs } = q;

    // Convert from s3d to json
    fs.setEntry('/qeynos2.s3d', /* Uint8Array */ fs.makeFileEntry(undefined, someBuffer));
    quail.convert('/qeynos2.s3d', '/qeynos2.json');

    const qeynos2 = JSON.parse(new TextDecoder().decode(fs.getEntry('/qeynos2.json').data, 'utf8'));

    // Write from json back to s3d
    quail.convert('/qeynos2.json', '/qeynos2_new.s3d');
});
1.4.23

6 months ago

1.4.22

6 months ago

1.4.21

7 months ago

1.4.20

7 months ago

1.4.19

7 months ago

1.4.16

7 months ago

1.4.15

7 months ago

1.4.14

7 months ago

1.4.13

7 months ago

1.4.12

7 months ago

1.4.11

7 months ago

1.4.10

7 months ago

1.4.9

7 months ago

1.0.0

7 months ago