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.

npm install ck-transpiler
INSTALL
IMPORT
SIG · CK-TRANSPILER
C
ck-transpiler
serializationjavascriptv2.0.3
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.

default
import ckTranspiler from 'ck-transpiler'
const ckTranspiler = require('ck-transpiler')
Package is ESM-only since v2. No CommonJS support.
transpile
import { transpile } from 'ck-transpiler'
Named export for the main transpile function.
parse
import { parse } from 'ck-transpiler'
import parse from 'ck-transpiler'
parse is a named export, not default.

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 issues
breakingIn v2.0.0, the default export was removed; use named exports instead.
fix
Replace `import ckTranspiler from 'ck-transpiler'` with `import { transpile } from 'ck-transpiler'`.
affects: >=2.0.0
deprecatedThe `transform` function is deprecated in v2.0.3 and will be removed in v3.
fix
Use `transpile` with `{ mode: 'transform' }` option instead.
affects: >=2.0.3
gotchaThe package requires Node.js >=14 due to ESM and top-level await usage.
fix
Update Node.js to version 14 or later.
affects: >=2.0.0
Errors
Common errors & fixes
Error: Cannot find module 'ck-transpiler'
Package not installed or missing from node_modules.
fix
Run `npm install ck-transpiler` to install the package.
TypeError: transpile is not a function
Importing the default export instead of named export.
fix
Use `import { transpile } from 'ck-transpiler'` instead of `import ckTranspiler from ...`.
Upgrade
Version history
2.0.3latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
12 hits · last 30 days
node
8
Amazon
1
OpenAI (training)
1
Resources
ck-transpiler — npm install ck-transpiler · libregistry