
Security News
PodRocket Podcast: Inside the Recent npm Supply Chain Attacks
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
@rhcp/heading_hash_wasm_web
Advanced tools
A WebAssembly build of the Mimir heading_hash transform, suitable for use in Nodejs and browsers.
heading_hash
transformThis is a WebAssembly build of the heading_hash
transform, suitable for use in Nodejs and browsers.
Install wasm-pack.
The wasm-pack site recommends curling into your shell to install, but I prefer using cargo:
cargo install wasm-pack
Once wasm-pack is installed, you can build, test, and publish this package.js
Build for nodejs:
make build_node
Build for web:
make build_web
Default is a release build with optimizations and no debug info. Add --dev
for a debug build.
Add the dependency:
npm i @rhcp/heading_hash_wasm
Import & use it:
import * as headingHash from "@rhcp/heading_hash_wasm";
console.log(headingHash.transform(#hello"));
npm i @rhcp/heading_hash_wasm_web
Import the package, initialize it, and log a transformed string.
import { default as init, transform } from "@rhcp/heading_hash_wasm_web";
await init();
console.log(transform("#hello"))
Please note that this example assumes you have a bundler which will resolve the name @rhcp/heading_hash_wasm_web
.
wasm-pack test
wasm-pack test --headless --firefox
FAQs
A WebAssembly build of the Mimir heading_hash transform, suitable for use in Nodejs and browsers.
The npm package @rhcp/heading_hash_wasm_web receives a total of 0 weekly downloads. As such, @rhcp/heading_hash_wasm_web popularity was classified as not popular.
We found that @rhcp/heading_hash_wasm_web demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.