Skip to content

API Reference

The package exposes one main entry, hashup(), plus a set of lower-level utilities for advanced use cases.

Entry Point

Utilities

Config (subpath export)

The Zod schema and generated JSON schema for hashup.json live on a separate subpath so the main entry stays dep-free:

ts
import { configSchema, configJsonSchema } from "@maastrich/hashup/config";

See the CLI guide for the config shape and editor integration.

Main entry

All core functions are exported from the package root:

ts
import {
  hashup,
  createResolver,
  resolveImport,
  extractImports,
  hashFile,
  createContentHash,
  combineHashes,
  createLogger,
  isLogLevel,
  isInNodeModules,
  createHashupCache,
  collectReachable,
  type HashupCache,
  type Logger,
  type LogLevel,
} from "@maastrich/hashup";

Released under the MIT License.