{"id":25073,"library":"ck-transpiler","title":"ckParser Transpiler","description":"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.","status":"active","version":"2.0.3","language":"javascript","source_language":"en","source_url":"https://github.com/YxrSadhu/ckParser","tags":["javascript"],"install":[{"cmd":"npm install ck-transpiler","lang":"bash","label":"npm"},{"cmd":"yarn add ck-transpiler","lang":"bash","label":"yarn"},{"cmd":"pnpm add ck-transpiler","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"Package is ESM-only since v2. No CommonJS support.","wrong":"const ckTranspiler = require('ck-transpiler')","symbol":"default","correct":"import ckTranspiler from 'ck-transpiler'"},{"note":"Named export for the main transpile function.","wrong":"","symbol":"transpile","correct":"import { transpile } from 'ck-transpiler'"},{"note":"parse is a named export, not default.","wrong":"import parse from 'ck-transpiler'","symbol":"parse","correct":"import { parse } from 'ck-transpiler'"}],"quickstart":{"code":"import { transpile } from 'ck-transpiler';\n\nconst input = `let x = 1;`;\ntry {\n  const output = transpile(input, { target: 'es2020' });\n  console.log(output.code);\n} catch (err) {\n  console.error('Transpilation failed:', err.message);\n}","lang":"typescript","description":"Demonstrates importing and using the transpile function with options, including error handling."},"warnings":[{"fix":"Replace `import ckTranspiler from 'ck-transpiler'` with `import { transpile } from 'ck-transpiler'`.","message":"In v2.0.0, the default export was removed; use named exports instead.","severity":"breaking","affected_versions":">=2.0.0"},{"fix":"Use `transpile` with `{ mode: 'transform' }` option instead.","message":"The `transform` function is deprecated in v2.0.3 and will be removed in v3.","severity":"deprecated","affected_versions":">=2.0.3"},{"fix":"Update Node.js to version 14 or later.","message":"The package requires Node.js >=14 due to ESM and top-level await usage.","severity":"gotcha","affected_versions":">=2.0.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run `npm install ck-transpiler` to install the package.","cause":"Package not installed or missing from node_modules.","error":"Error: Cannot find module 'ck-transpiler'"},{"fix":"Use `import { transpile } from 'ck-transpiler'` instead of `import ckTranspiler from ...`.","cause":"Importing the default export instead of named export.","error":"TypeError: transpile is not a function"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}