Skip to main content
Version: v0.0.4

Installation

@cosyte/transform ships dual ESM + CJS builds with per-condition type declarations, so it works from either module system without configuration. Its own third-party runtime dependencies are zero - it depends only on two cosyte siblings.

Status: pre-alpha (0.0.x), not yet published to npm. The command below is the shape it will take at first publish; until then, consume it from source or a workspace link.

Prerequisites

  • Node.js >= 22 (the whole @cosyte/* suite targets ES2023 / Node 22+).
  • A package manager - pnpm, npm, or yarn.

Install

npm install @cosyte/transform @cosyte/hl7 @cosyte/fhir

@cosyte/hl7 and @cosyte/fhir are declared as peer dependencies: transform maps between the models they own, so a consumer supplies them. Because both are still unpublished, this repo's own tests build against vendored tarballs in vendor/ (regenerated by pnpm vendor:refresh) - the same interim mechanism @cosyte/mllp uses, replaced by real npm installs at first publish.

Smoke test

Confirm the package resolves and its version symbol is present:

import { VERSION } from "@cosyte/transform";

console.log(VERSION);

If that prints a version string, the install is good - head to the Quickstart.