6.7.98 • Published 10 months ago

@kollorg/officiis-veritatis v6.7.98

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

@kollorg/officiis-veritatis - Version 2

Tests Coverage Status

Note: @kollorg/officiis-veritatis 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 "@kollorg/officiis-veritatis";

// 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 "@kollorg/officiis-veritatis";

wasmFolder("https://cdn.jsdelivr.net/npm/@kollorg/officiis-veritatis/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 "@kollorg/officiis-veritatis";

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();
URLSearchParamsjsonschemaemojimkdirpObject.assignbundlerworkspace:*channelidrandomdataViewproxyapisuperstructslicetestingframersearchestreeflatimportglobmodulesparentsinstrumentationfileeventDispatchercensorstarterBigInt64ArrayserviceworkerECMAScript 2021nodejsexpressiongesturesvpcfast-deep-clonegetintrinsiclruzodchildomitclassnamesetterforkdataviewpipeconfigurablepyyamlObject.entrieswaapiargumentwaitsetPrototypeOf-0ArrayBuffer#slicesyntaxerrorieintrinsicparseawesomesaucevariablescoreextendArray.prototype.findLastIndexenvoffsetreact animationES5lastsortedcommanderpathawsfunctionsbinaryfastifyReactiveExtensionsprotocol-buffersprogressAsyncIteratortrimtoolkitkeyTypeScriptWeakSetistanbultstypedarrayshelperdiffpushlocalmochatextStreamsdefineecmascriptwaftestershrinkwraphooksconstreversedweakmaphttpsvarsuninstallavaec2ES2023fast-copyroute53iteratores2016fullES2015importexportdescriptiondefinePropertyttyutilitiesunicodespringutil.inspectRFC-6455fixed-widthequalityloggerforEachcoverageentriesnativeprivatescheme-validationwidthswfservertouchsafefunctionarraybuffercolortransportramdacodescacheassertstc39propertyfile systembrowserReflect.getPrototypeOftddkoreanrequireacornprotobufcryptojson-schemavalidatorESnexttslibasciiES2020sesinternal slotbinariesreact posecharactersparentarraymobilepurerssglobalscheckglobal256code pointspackagecommandoutputl10nurlsuperagentjsdiffconcatMapFloat32ArrayresolvegdprformsairbnbcallboundmoveslotpopmotiontypeerrormatchAllsimpledbbyteLengthdeepcloneassignsqsback-endECMAScript 2017mruquotepnpm9dirwebasteriskshigher-orderloadbalancingdebuggerArrayBuffer.prototype.slicefasthasOwnpinoebsTypeBoxdynamodbcircularqsdeep-copyconsolelinkstylingquerycomputed-typesCSSStyleDeclarationstringifynodemomentArray.prototype.containsECMAScript 2020Array.prototype.includesshebangexecutebinstructuredCloneStyleSheetsymboleslintpluginmapreduceinvariantstablepoint-freereal-timematchesjsonreact-hook-formfastcopycloudsearchECMAScript 5flagsArray.prototype.flattengetsharedarraybufferObject.getPrototypeOfrestTypedArrayimmerobjenvironmentsObservablereverseECMAScript 7typanionarraysquerystringrmidentifiers.gitignorethreeUint8Arrayformconfiginstallertypeofspinnergroupexpresshttpapollocallbabel-corelocationexecfilefetchvestprototypeeverypluginSetES2021uprangeerrorObject.definePropertyenumerableio-tsECMAScript 6harmonydescriptortestobjectsinatraelb_.extendaccessorES2016helperses20183dhashfrombindeast-asian-widthfigletFloat64Arrayes-shim API[[Prototype]]schemarm -rfdotenvObject.valuesloggingfind-upqueueremoveinternalreactescapeespreedayjsutilspostcsskinesismonorepopromisermdiratomES8getoptoptimistMapcjktypesafeshimFunction.prototype.nameString.prototype.matchAllsymlinkstranspilereducecolumnsdescriptorschineseArray.prototype.flathtmllook-upes2015getterjssetObjecttelephoneflattendomreuserobustWebSocketsYAMLtimetypedarrayArrayBuffertyped arrayECMAScript 2015ECMAScript 2019xmlclonerestfulsymbolsrfc4122stringifierArrayajaxi18nindicatorfindinstallyupfunction.lengthmockingdatetrimLeftgraphqlxtermstoragegatewayregular expressionsasyncInt32Arraymulti-packageUint32ArrayCSSform-validationutilphoneregular-expressionArray.prototype.flatMapmatchreadableclijsdomcollectionautoscalingECMAScript 2023nameURLsideprettylengthtypeselasticacheRxJScssargvspawnspinnersnpmstyleguide$.extendstreamwgetes-abstractreducerweaksetnamesiterateclass-validatorreact-hooksInt8ArrayruntimelockfileserializergetOwnPropertyDescriptorreadablestreamglacierwhichflagvartypeECMAScript 2022sharedkarmacore-jswhatwggitignorecolourpropertiesjoiwarningfnmatchbyterapidarktypewritableignoresettingscallbackfilterHyBies6command-linefindLastES2017javascriptlintdeepcompilertoSortedtoStringTagEShandlersetImmediatestyled-componentstypescriptcolumnworkflowjsxtaptrimRightjQuerybufferjson-schema-validatorfsrouterzeroflatMapIteratorspecdom-testing-libraryredacttostringtagamazonfpsgroupByUint16ArrayautoprefixerRxclassnamesassertcloudformationWebSocketa11yframeworkutility@@toStringTagtypedvalidaterequestMicrosofthasOwnPropertyvieweslintelectronuser-streamsinmkdirimmutablevaluefpReactiveXpackagesbusyES7languageoptimizereslintconfigshamjasminetoolsbabelhasprotoeslint-plugincall-bindsameValueZeroperformanttoobjectchromiumesartObservablesmodulecloudtrailgenericsmockSymbolfastcloneeffect-tstoArraystringbyteOffsetroutingclientbrowserlistsnsshellbuffersstylesidlecollection.es6compareoncejshintPushinferenceRegExp#flagsfunctionalserializenopeJSONpruneJSON-Schemapostcss-plugin__proto__full-widthUint8ClampedArrayconcatRegExp.prototype.flagsfolderpreprocessorBigUint64Arrayhas-ownpositiveoptiontrimStartargssource maplogparserconsumeboundeventEmitter6to5loadingendpointequalECMAScript 2016guids3curlastpropisgetPrototypeOfArray.prototype.filterreworkvalidationserializationcharacterincludesfullwidthtacitObject.keysbeanstalkECMAScript 2018es2017PromisemkdirsqueueMicrotaskrdsprocessrouteStreambddWeakMapxhrcallbindregular expressionmapObject.fromEntries.envsyntaxbundlingmanipulationdirectoryvisualES2019rm -frdragwriteiamlistenersmanagerajvdataminimalredirectreact-testing-librarydeep-cloneECMAScript 3toReversedemitrgbObject.ises8environmentfindLastIndexwalkingrecursiveisConcatSpreadablecolorsUnderscorechrome0copyspeedapplibphonenumbernpmignorekeyssubprocessrulesuuidfindupmakecreateSymbol.toStringTagjapaneseinputowntermprefixregulardependency managernegative zerocontainsregexpcurriedexecES2018css-in-jspatchansitraverse
6.7.98

10 months ago

6.7.95

10 months ago

6.7.96

10 months ago

6.7.97

10 months ago

6.6.95

11 months ago

6.5.94

11 months ago

6.6.94

11 months ago

6.5.93

11 months ago

5.5.93

11 months ago

5.5.92

11 months ago

5.4.92

11 months ago

5.4.91

11 months ago

5.4.90

11 months ago

5.4.89

11 months ago

5.4.88

11 months ago

5.4.87

11 months ago

5.4.86

11 months ago

5.4.85

11 months ago

5.4.84

11 months ago

5.4.83

11 months ago

5.4.82

11 months ago

5.4.81

11 months ago

5.4.80

11 months ago

5.4.79

11 months ago

5.4.78

11 months ago

5.4.77

11 months ago

5.4.76

11 months ago

5.4.75

11 months ago

5.4.74

11 months ago

5.4.73

11 months ago

5.4.72

11 months ago

5.4.71

11 months ago

5.4.70

11 months ago

5.4.69

11 months ago

5.4.68

12 months ago

5.4.67

12 months ago

5.4.66

12 months ago

5.4.65

12 months ago

5.4.64

12 months ago

5.4.63

12 months ago

4.4.63

12 months ago

4.4.62

12 months ago

4.4.61

12 months ago

4.4.60

12 months ago

4.4.59

12 months ago

4.4.58

12 months ago

4.4.57

12 months ago

3.4.57

12 months ago

3.4.56

12 months ago

3.4.55

12 months ago

3.4.54

12 months ago

3.4.53

12 months ago

3.4.52

12 months ago

3.4.51

12 months ago

3.4.50

1 year ago

3.4.49

1 year ago

3.4.48

1 year ago

3.3.48

1 year ago

3.3.47

1 year ago

3.3.46

1 year ago

3.3.45

1 year ago

3.3.44

1 year ago

3.3.43

1 year ago

3.3.42

1 year ago

3.3.41

1 year ago

3.3.40

1 year ago

3.3.39

1 year ago

3.3.38

1 year ago

3.3.37

1 year ago

3.3.36

1 year ago

3.3.35

1 year ago

3.3.34

1 year ago

3.3.33

1 year ago

3.3.32

1 year ago

3.3.31

1 year ago

3.3.30

1 year ago

3.3.29

1 year ago

3.3.28

1 year ago

3.3.27

1 year ago

3.3.26

1 year ago

3.2.26

1 year ago

3.2.25

1 year ago

3.2.24

1 year ago

3.2.23

1 year ago

3.2.22

1 year ago

3.2.21

1 year ago

3.2.20

1 year ago

3.2.19

1 year ago

3.2.18

1 year ago

3.2.17

1 year ago

3.2.16

1 year ago

3.2.15

1 year ago

3.2.14

1 year ago

3.1.14

1 year ago

3.1.13

1 year ago

3.1.12

1 year ago

3.1.11

1 year ago

3.1.10

1 year ago

3.1.9

1 year ago

3.0.9

1 year ago

3.0.8

1 year ago

3.0.7

1 year ago

2.0.7

1 year ago

2.0.6

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

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