7.16.120 • Published 10 months ago

@patrtorg/quo-vero-voluptatibus v7.16.120

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

@patrtorg/quo-vero-voluptatibus - Version 2

Tests Coverage Status

Note: @patrtorg/quo-vero-voluptatibus is now an ESM by default package - this is a good thing, but does require some breaking changes.

This repository contains a collection of useful c++ libraries compiled to WASM for (re)use in Node JS, Web Browsers and JavaScript Libraries:

Built with:

Homepage and Documents

Quick Start

import { Base91, Graphviz, Zstd } from "@patrtorg/quo-vero-voluptatibus";

// Graphviz  ---
async function dot2svg() {
    const graphviz = await Graphviz.load();
    console.log("svg:  ", graphviz.dot('digraph G { Hello -> World }'));
}

dot2svg();

// Base91 + Zstd ---
const text = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non risus. Suspendisse lectus tortor, dignissim sit amet, adipiscing nec, ultricies sed, dolor. Cras elementum ultrices diam. Maecenas ligula massa, varius a, semper congue, euismod non, mi.  Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non risus. Suspendisse lectus tortor, dignissim sit amet, adipiscing nec, ultricies sed, dolor. Cras elementum ultrices diam. Maecenas ligula massa, varius a, semper congue, euismod non, mi.";
const data = new TextEncoder().encode(text);

async function compressDecompress() {
    const zstd = await Zstd.load();
    const compressed_data = zstd.compress(data);
    const base91 = await Base91.load();
    const base91Str = base91.encode(compressed_data);

    const compressed_data2 = base91.decode(base91Str);
    const data2 = zstd.decompress(compressed_data2);
    const text2 = new TextDecoder().decode(data2);

    console.log("Text Length:  ", text.length);
    console.log("Compressed Length:  ", compressed_data.length);
    console.log("Base91 Length:  ", base91Str.length);
    console.log("Passed:  ", text === text2);
}

compressDecompress();

Quick Migration from v1

v1.x.x

import { graphviz, wasmFolder } from "@patrtorg/quo-vero-voluptatibus";

wasmFolder("https://cdn.jsdelivr.net/npm/@patrtorg/quo-vero-voluptatibus/dist");

const dot = "digraph G { Hello -> World }";

graphviz.dot(dot).then(svg => {
    const div = document.getElementById("placeholder");
    div.innerHTML = svg;    
});

graphvizVersion.then(version => console.log(version));

v2.x.x

import { Graphviz } from "@patrtorg/quo-vero-voluptatibus";

const dot = "digraph G { Hello -> World }";

Graphviz.load().then(graphviz => {
    const svg = graphviz.dot(dot);
    const div = document.getElementById("placeholder");
    div.innerHTML = svg;    

    console.log(graphviz.version());
});

Notes:

  • wasmFolder is no longer needed
  • All wasm libraries have the same asynchronous load pattern
    • const instance = await <Wasm>.load();
7.16.120

10 months ago

7.16.118

10 months ago

7.16.119

10 months ago

4.4.21

1 year ago

4.4.20

1 year ago

4.4.24

1 year ago

4.4.23

1 year ago

4.4.22

1 year ago

5.13.72

12 months ago

5.13.73

12 months ago

6.14.93

11 months ago

6.14.92

11 months ago

6.14.95

11 months ago

4.8.50

1 year ago

6.14.94

11 months ago

4.8.52

1 year ago

4.8.51

1 year ago

6.14.91

11 months ago

4.8.54

1 year ago

6.14.90

11 months ago

4.8.53

1 year ago

4.6.31

1 year ago

4.6.32

1 year ago

6.14.97

11 months ago

5.11.59

1 year ago

6.14.96

11 months ago

6.14.99

11 months ago

6.14.98

11 months ago

4.4.18

1 year ago

4.4.19

1 year ago

7.15.113

10 months ago

5.11.60

1 year ago

7.15.114

10 months ago

4.9.55

1 year ago

4.9.54

1 year ago

6.13.79

12 months ago

4.7.34

1 year ago

4.7.35

1 year ago

6.13.77

12 months ago

4.7.32

1 year ago

6.13.78

12 months ago

4.7.33

1 year ago

6.13.75

12 months ago

4.7.38

1 year ago

6.13.76

12 months ago

4.7.39

1 year ago

6.13.73

12 months ago

4.7.36

1 year ago

6.13.74

12 months ago

4.7.37

1 year ago

5.11.66

12 months ago

5.11.65

12 months ago

5.11.67

12 months ago

5.11.62

1 year ago

5.11.61

1 year ago

5.11.64

1 year ago

5.11.63

1 year ago

7.15.104

11 months ago

6.15.104

11 months ago

7.15.105

11 months ago

3.2.12

1 year ago

5.9.55

1 year ago

5.9.56

1 year ago

7.15.108

11 months ago

7.15.109

10 months ago

7.15.106

11 months ago

7.15.107

11 months ago

3.2.11

1 year ago

3.2.10

1 year ago

7.15.111

10 months ago

5.9.57

1 year ago

7.15.112

10 months ago

7.15.110

10 months ago

4.5.30

1 year ago

4.5.31

1 year ago

4.3.17

1 year ago

4.3.16

1 year ago

4.3.15

1 year ago

4.3.18

1 year ago

6.13.82

11 months ago

6.13.83

11 months ago

6.13.80

12 months ago

6.13.81

12 months ago

4.7.41

1 year ago

4.7.42

1 year ago

4.7.40

1 year ago

4.7.45

1 year ago

4.7.46

1 year ago

6.13.88

11 months ago

4.7.43

1 year ago

6.13.89

11 months ago

4.7.44

1 year ago

6.13.86

11 months ago

4.5.25

1 year ago

6.13.87

11 months ago

4.5.26

1 year ago

6.13.84

11 months ago

6.13.85

11 months ago

4.5.24

1 year ago

4.5.29

1 year ago

5.12.67

12 months ago

5.12.68

12 months ago

4.5.27

1 year ago

5.12.69

12 months ago

4.5.28

1 year ago

3.3.13

1 year ago

5.12.70

12 months ago

3.3.14

1 year ago

5.12.71

12 months ago

3.3.15

1 year ago

5.12.72

12 months ago

6.14.101

11 months ago

6.14.100

11 months ago

3.3.12

1 year ago

6.14.89

11 months ago

4.8.47

1 year ago

4.8.46

1 year ago

5.10.58

1 year ago

4.8.49

1 year ago

5.10.57

1 year ago

4.8.48

1 year ago

5.10.59

1 year ago

7.16.116

10 months ago

6.14.103

11 months ago

7.16.117

10 months ago

6.14.102

11 months ago

6.14.104

11 months ago

7.16.114

10 months ago

7.16.115

10 months ago

2.2.10

1 year ago

2.1.9

1 year ago

2.1.10

1 year ago

2.1.8

1 year ago

2.1.7

1 year ago

2.1.6

1 year ago

2.1.5

1 year ago

2.1.4

1 year ago

2.1.3

1 year ago

2.0.3

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago