Gathering detailed insights and metrics for @hpcc-js/wasm-base91
Gathering detailed insights and metrics for @hpcc-js/wasm-base91
Gathering detailed insights and metrics for @hpcc-js/wasm-base91
Gathering detailed insights and metrics for @hpcc-js/wasm-base91
npm install @hpcc-js/wasm-base91
70.2
Supply Chain
72.9
Quality
80.3
Maintenance
100
Vulnerability
100
License
wasm: v2.22.3
Published on 29 Sept 2024
wasm-zstd: v1.2.1
Published on 29 Sept 2024
wasm-graphviz-cli: v1.2.5
Published on 29 Sept 2024
wasm-graphviz: v1.6.1
Published on 29 Sept 2024
wasm-expat: v1.3.1
Published on 29 Sept 2024
wasm-duckdb: v1.5.1
Published on 29 Sept 2024
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
322 Stars
510 Commits
24 Forks
10 Watching
10 Branches
10 Contributors
Updated on 24 Nov 2024
TypeScript (52.29%)
C++ (25.41%)
CMake (11.32%)
JavaScript (5.34%)
HTML (3.68%)
C (1.16%)
Shell (0.4%)
Dockerfile (0.39%)
Cumulative downloads
Total Downloads
Last day
3,200%
33
Compared to previous day
Last week
21.8%
67
Compared to previous week
Last month
-31.4%
269
Compared to previous month
Last year
0%
2,876
Compared to previous year
No dependencies detected.
Note: @hpcc-js/wasm 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:
Converted this repository to a monorepo with the following packages:
1import { Base91 } from "@hpcc-js/wasm-base91"; 2import { Graphviz } from "@hpcc-js/wasm-graphviz"; 3import { Zstd } from "@hpcc-js/wasm-zstd"; 4 5// Graphviz --- 6async function dot2svg() { 7 const graphviz = await Graphviz.load(); 8 console.log("svg: ", graphviz.dot('digraph G { Hello -> World }')); 9} 10 11dot2svg(); 12 13// Base91 + Zstd --- 14const 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."; 15const data = new TextEncoder().encode(text); 16 17async function compressDecompress() { 18 const zstd = await Zstd.load(); 19 const compressed_data = zstd.compress(data); 20 const base91 = await Base91.load(); 21 const base91Str = base91.encode(compressed_data); 22 23 const compressed_data2 = base91.decode(base91Str); 24 const data2 = zstd.decompress(compressed_data2); 25 const text2 = new TextDecoder().decode(data2); 26 27 console.log("Text Length: ", text.length); 28 console.log("Compressed Length: ", compressed_data.length); 29 console.log("Base91 Length: ", base91Str.length); 30 console.log("Passed: ", text === text2); 31} 32 33compressDecompress();
v1.x.x
1import { graphviz, wasmFolder } from "@hpcc-js/wasm"; 2 3wasmFolder("https://cdn.jsdelivr.net/npm/@hpcc-js/wasm/dist"); 4 5const dot = "digraph G { Hello -> World }"; 6 7graphviz.dot(dot).then(svg => { 8 const div = document.getElementById("placeholder"); 9 div.innerHTML = svg; 10}); 11 12graphvizVersion.then(version => console.log(version));
v2.x.x
1import { Graphviz } from "@hpcc-js/wasm"; 2 3const dot = "digraph G { Hello -> World }"; 4 5Graphviz.load().then(graphviz => { 6 const svg = graphviz.dot(dot); 7 const div = document.getElementById("placeholder"); 8 div.innerHTML = svg; 9 10 console.log(graphviz.version()); 11});
Notes:
const instance = await <Wasm>.load();
v3.x.x
1import { Graphviz } from "@hpcc-js/wasm-graphviz"; 2 3const dot = "digraph G { Hello -> World }"; 4 5Graphviz.load().then(graphviz => { 6 const svg = graphviz.dot(dot); 7 const div = document.getElementById("placeholder"); 8 div.innerHTML = svg; 9 10 console.log(graphviz.version()); 11});
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
30 commit(s) and 3 issue activity found in the last 90 days -- score normalized to 10
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
packaging workflow detected
Details
Reason
SAST tool detected but not run on all commits
Details
Reason
4 existing vulnerabilities detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 3
Details
Reason
Found 4/18 approved changesets -- score normalized to 2
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Score
Last Scanned on 2024-11-25
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More