0.93.3 • Published 2 days ago

@invopop/gobl-worker v0.93.3

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 days ago

@invopop/gobl-worker

Node.js package to help use the GOBL CLI WASM binary distributed via CDN. This package at the moment won't try to embed the .wasm as an asset.

Versions of this package always match the GOBL CLI version which was uploaded to the CDN.

It turns out providing workers from npm packages is actually quite hard. This library uses Vite to embed the worker.js inside the main gobl-worker.js file as Base64 data to avoid issues loading external JS assets.

Usage

Install the GOBL worker into your project:

npm install @invopop/gobl-worker

Grab namespace and run operations:

import * as gobl from "@invopop/gobl-worker";

const data = await gobl.ping();
const result = JSON.parse(data);

if (result.pong) {
  console.log("Success!");
}

Notice

This library is still in experimental stages and requires a refactor to make interfaces much easier to use.

More tests and consolidation of the /wasm project also including in this repository is required.

0.93.2

2 days ago

0.93.3

2 days ago

0.93.1

2 days ago

0.93.0

2 days ago

0.92.0

16 days ago

0.92.1

16 days ago

0.91.0

17 days ago

0.90.0

21 days ago

0.89.0

1 month ago

0.88.0

2 months ago

0.87.0

2 months ago

0.86.0

2 months ago

0.85.0

3 months ago

0.84.0

3 months ago

0.81.0

3 months ago

0.82.0

3 months ago

0.81.1

3 months ago

0.83.0

3 months ago

0.78.0

4 months ago

0.79.0

4 months ago

0.77.0

4 months ago

0.76.0

5 months ago

0.75.0

5 months ago

0.74.0

6 months ago

0.73.0

7 months ago

0.72.0

7 months ago

0.71.1

7 months ago

0.71.0

8 months ago

0.70.0

8 months ago

0.69.1

8 months ago

0.69.0

8 months ago

0.68.0

8 months ago

0.67.0

8 months ago

0.66.0

8 months ago

0.65.0

9 months ago

0.64.4

9 months ago

0.64.3

9 months ago

0.64.0

9 months ago