{"id":27570,"library":"zump-compiler","title":"ZumP Compiler","description":"The official compiler for ZumP, a programming language. This package compiles ZumP source code into executable output. Version 1.0.13 targets Node.js 18+. It is a specialized tool for ZumP development with limited public adoption and documentation.","status":"active","version":"1.0.13","language":"javascript","source_language":"en","source_url":null,"tags":["javascript","ZumP","Compiler"],"install":[{"cmd":"npm install zump-compiler","lang":"bash","label":"npm"},{"cmd":"yarn add zump-compiler","lang":"bash","label":"yarn"},{"cmd":"pnpm add zump-compiler","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"ESM-only package; require() will throw ERR_REQUIRE_ESM.","wrong":"const compile = require('zump-compiler')","symbol":"compile","correct":"import { compile } from 'zump-compiler'"},{"note":"Named export, not default.","wrong":"import ZumpCompiler from 'zump-compiler'","symbol":"ZumpCompiler","correct":"import { ZumpCompiler } from 'zump-compiler'"},{"note":"Package has a default export, but only works with ESM imports.","wrong":"const zump = require('zump-compiler')","symbol":"default","correct":"import zump from 'zump-compiler'"}],"quickstart":{"code":"import { compile } from 'zump-compiler';\nimport { readFileSync } from 'fs';\n\nconst source = readFileSync('example.zump', 'utf8');\ntry {\n  const result = compile(source, { target: 'es2020' });\n  console.log(result.code);\n} catch (err) {\n  console.error('Compilation failed:', err.message);\n}","lang":"typescript","description":"Compiles a ZumP source file to JavaScript using the compile function, with an options object for target configuration."},"warnings":[{"fix":"Use ESM imports; add \"type\": \"module\" to your package.json or rename files to .mjs.","message":"Package is ESM-only (no CommonJS support). Requires Node >= 18 and \"type\": \"module\" in package.json or .mjs extension.","severity":"breaking","affected_versions":">=1.0.0"},{"fix":"Refer to source code or contact maintainer for usage details.","message":"No README or documentation available; API surface is inferred from package exports.","severity":"gotcha","affected_versions":"<=1.0.13"},{"fix":"Lock version to avoid breaking changes.","message":"Options object may change without major version bump due to pre-1.0 status (semver considered unstable).","severity":"deprecated","affected_versions":">=1.0.0 <1.0.13"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Use import() dynamic import or convert project to ESM.","cause":"Package is ESM-only but users try to require() it from a CommonJS module.","error":"Error [ERR_REQUIRE_ESM]: require() of ES Module /path/to/node_modules/zump-compiler/index.js from /path/to/project/index.js not supported."},{"fix":"Use `import { compile } from 'zump-compiler'`.","cause":"Incorrect import (e.g., default import instead of named).","error":"TypeError: compile is not a function"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}