Registry / serialization / ck-transpiler

ck-transpiler

JSON →
library2.0.3jsnpmunverified

A transpiler for the Momoko project that converts custom syntax into target code. Current stable version is 2.0.3. The package is tightly coupled with the Momoko ecosystem and offers specialized transformation rules not found in general transpilers. Release cadence is irregular, aligned with Momoko updates. Differentiators include lightweight implementation and direct integration with ckParser grammar.

serialization
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.

Package is ESM-only since v2. No CommonJS support.

import ckTranspiler from 'ck-transpiler'

Named export for the main transpile function.

import { transpile } from 'ck-transpiler'

parse is a named export, not default.

import { parse } from 'ck-transpiler'

Demonstrates importing and using the transpile function with options, including error handling.

import { transpile } from 'ck-transpiler'; const input = `let x = 1;`; try { const output = transpile(input, { target: 'es2020' }); console.log(output.code); } catch (err) { console.error('Transpilation failed:', err.message); }
ck-transpiler --version
Debug
Known footguns
breakingIn v2.0.0, the default export was removed; use named exports instead.
deprecatedThe `transform` function is deprecated in v2.0.3 and will be removed in v3.
gotchaThe package requires Node.js >=14 due to ESM and top-level await usage.
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
16 hits · last 30 days
bytedance
4
gptbot
3
ahrefsbot
3
amazonbot
3
claudebot
2
bingbot
1
Resources