Registry / devops / typhon-typescript

typhon-typescript

JSON →
library1.0.7jsnpmunverified

A transpiler that converts Typhon to TypeScript. Version 1.0.7 stable. Low-cadence maintenance with no recent updates. Differentiator: domain-specific transpilation for the Typhon language, targeting TypeScript output. Minimal documentation; primarily a build tool dependency.

npm install typhon-typescript
INSTALL
IMPORT
SIG · TYPHON-TYPESCRIPT
T
typhon-typescript
devopsjavascriptv1.0.7
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

compile
import { compile } from 'typhon-typescript';
const compile = require('typhon-typescript').compile;
Package is ESM; use named import.
default
import typhon from 'typhon-typescript';
const typhon = require('typhon-typescript');
Default export is the transpiler function; avoid requires for ESM.
Transpiler
import { Transpiler } from 'typhon-typescript';
import { Transpiler } from 'typhon-typescript/Transpiler';
Type is exported from main entry; not a subpath export.

Transpile a simple Typhon program that prints to console, outputting equivalent TypeScript.

import { compile } from 'typhon-typescript'; const tyCode = ` output "Hello, world"; `; const tsCode = compile(tyCode); console.log(tsCode);
typhon-ts --version
Debug
Known issues
gotchaPackage is ESM-only. CommonJS require() will throw ERR_REQUIRE_ESM.
fix
Use import instead of require, or set type:"module" in package.json.
affects: >=1.0.0
breakingNo breaking changes documented as package is low-activity; may have undocumented breaking changes between minor versions.
fix
Pin exact version and test upgrades.
affects: >=1.0.0
deprecatedNo deprecation notices; but package has not been updated recently and may be considered low-support.
fix
Consider forking or contributing if active maintenance needed.
affects: >=1.0.0
gotchaTypeScript types are shipped but may be incomplete; rely on runtime behavior.
fix
Test compilation output with expected Typhon features.
affects: >=1.0.0
Errors
Common errors & fixes
Cannot find module 'typhon-typescript'
Package not installed or not in node_modules.
fix
Run npm install typhon-typescript --save-dev
ERR_REQUIRE_ESM
Using require() on an ES module.
fix
Change to import statement.
TyphonSyntaxError: unexpected token
Invalid Typhon code input.
fix
Verify Typhon syntax according to language spec.
Upgrade
Version history
1.0.7latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
typhon-typescript — npm install typhon-typescript · libregistry