1.4.23 • Published 7 months ago

quail-wasm v1.4.23

Weekly downloads
-
License
MIT
Repository
github
Last release
7 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

7 months ago

1.4.22

8 months ago

1.4.21

8 months ago

1.4.20

8 months ago

1.4.19

8 months ago

1.4.16

8 months ago

1.4.15

8 months ago

1.4.14

8 months ago

1.4.13

8 months ago

1.4.12

8 months ago

1.4.11

8 months ago

1.4.10

8 months ago

1.4.9

8 months ago

1.0.0

8 months ago