1.4.23 • Published 10 months ago

quail-wasm v1.4.23

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

10 months ago

1.4.22

11 months ago

1.4.21

11 months ago

1.4.20

11 months ago

1.4.19

11 months ago

1.4.16

11 months ago

1.4.15

11 months ago

1.4.14

11 months ago

1.4.13

11 months ago

1.4.12

11 months ago

1.4.11

11 months ago

1.4.10

11 months ago

1.4.9

11 months ago

1.0.0

11 months ago