Skip to content
PACKAGES

defaultNodeVersionHash()

Default synchronous D112 V1 node-version hash over strict canonical JSON UTF-8 bytes.

When hashing a host value directly, encode first: defaultNodeVersionHash(strictCanonicalJsonBytes(value)).

import { defaultNodeVersionHash } from "@graphrefly/ts/core";
function defaultNodeVersionHash(bytes: Uint8Array): string
ParameterTypeDescription
bytesUint8ArrayCanonical bytes to decode.

A string value.

import { defaultNodeVersionHash } from "@graphrefly/ts/core";

packages/ts/src/node/versioning.ts