![Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility](https://cdn.sanity.io/images/cgdhsj6q/production/97774ea8c88cc8f4bed2766c31994ebc38116948-1664x1366.png?w=400&fit=max&auto=format)
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@spartan-hc/holo-hash
Advanced tools
new HoloHash( input )
A Javascript library for managing Holochain's HoloHash
types.
This module is intended to provide Javascript classes for managing the various HoloHash
types. It
is designed to resemble the struct names and implementations based on Holochain's holo_hash
crate
(https://crates.io/crates/holo_hash). Although, method names and formats have been modified to
match Javascript's architecture.
uhCAkzycGKqICX7BJ11aehXkQ0ebZd9A0m08f-p8c1Pyy4uMlNUQU
)u
)
zycGKqICX7BJ11aehXkQ0ebZd9A0m08f-p8c1Pyy4uM
zycGKqICX7BJ11aehXkQ0ebZd9A0m08f-p8c1Pyy4uMlNUQU
hCAkzycGKqICX7BJ11aehXkQ0ebZd9A0m08f-p8c1Pyy4uMlNUQU
holo_hash
crate)instanceof
(new AgentPubKey(...) instanecof HoloHash) === true
(new AgentPubKey(...) instanecof AnyDhtHash) === true
(new AgentPubKey(...) instanecof AgentPubKey) === true
(new AgentPubKey(...) instanecof EntryHash) === false
npm i @spartan-hc/holo-hash
import { HoloHash } from '@spartan-hc/holo-hash';
new HoloHash("uhCAkzycGKqICX7BJ11aehXkQ0ebZd9A0m08f-p8c1Pyy4uMlNUQU");
// AgentPubKey(39) [
// 132, 32, 36, 207, 39, 6, 42, 162, 2,
// 95, 176, 73, 215, 86, 158, 133, 121, 16,
// 209, 230, 217, 119, 208, 52, 155, 79, 31,
// 250, 159, 28, 212, 252, 178, 226, 227, 37,
// 53, 68, 20
// ]
Alternatively, attach a method to the native String.prototype
.
import { bindNative } from '@spartan-hc/holo-hash';
bindNative();
"uhCAkzycGKqICX7BJ11aehXkQ0ebZd9A0m08f-p8c1Pyy4uMlNUQU".toHoloHash();
// AgentPubKey(39) [
// 132, 32, 36, 207, 39, 6, 42, 162, 2,
// 95, 176, 73, 215, 86, 158, 133, 121, 16,
// 209, 230, 217, 119, 208, 52, 155, 79, 31,
// 250, 159, 28, 212, 252, 178, 226, 227, 37,
// 53, 68, 20
// ]
See docs/API.md
See CONTRIBUTING.md
FAQs
A Javascript library for managing Holochain's HoloHash types
The npm package @spartan-hc/holo-hash receives a total of 10 weekly downloads. As such, @spartan-hc/holo-hash popularity was classified as not popular.
We found that @spartan-hc/holo-hash demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.