{"id":26132,"library":"push2cloud-compiler","title":"push2cloud-compiler","description":"Compiler for push2cloud manifests, version 2.0.4. It validates and transforms deployment manifest files for the push2cloud deployment system. Part of the larger push2cloud project, it handles manifest compilation with schema validation. No significant updates since 2016; project appears stale or in maintenance mode. Alternative: custom script or npm-deploy.","status":"maintenance","version":"2.0.4","language":"javascript","source_language":"en","source_url":"https://github.com/push2cloud/compiler","tags":["javascript"],"install":[{"cmd":"npm install push2cloud-compiler","lang":"bash","label":"npm"},{"cmd":"yarn add push2cloud-compiler","lang":"bash","label":"yarn"},{"cmd":"pnpm add push2cloud-compiler","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"Package does not export a default; actually exports named functions. Default import will fail.","wrong":"const compile = require('push2cloud-compiler')","symbol":"default","correct":"import compile from 'push2cloud-compiler'"},{"note":"Named export available as compile.","wrong":"const compile = require('push2cloud-compiler').compile","symbol":"compile","correct":"import { compile } from 'push2cloud-compiler'"},{"note":"Also exports validate function.","symbol":"validate","correct":"import { validate } from 'push2cloud-compiler'"}],"quickstart":{"code":"import { compile, validate } from 'push2cloud-compiler';\nconst manifest = {\n  apps: [{\n    name: 'test-app',\n    dockerImage: 'node:14'\n  }]\n};\ntry {\n  const valid = validate(manifest);\n  if (valid) {\n    const compiled = compile(manifest);\n    console.log('Compiled:', compiled);\n  }\n} catch (err) {\n  console.error('Error:', err.message);\n}","lang":"javascript","description":"Basic usage: validate and compile a manifest object."},"warnings":[{"fix":"Consider migrating to alternative deployment tools like Kubernetes or Docker Compose.","message":"Package is part of push2cloud project which is no longer actively maintained.","severity":"deprecated","affected_versions":">=0.0.0"},{"fix":"Use Node 10 or lower, or update package dependencies manually.","message":"Node.js >=4.2.0 required, but modern Node versions may have breaking changes due to outdated dependencies.","severity":"breaking","affected_versions":">=2.0.0"},{"fix":"Use named import: import { compile } from 'push2cloud-compiler'","message":"Default import does not exist; using 'import compile from ...' will result in undefined.","severity":"gotcha","affected_versions":">=0.0.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Change to named import: import { compile } from 'push2cloud-compiler'","cause":"Using default import when package exports named functions.","error":"TypeError: compile is not a function"},{"fix":"Ensure lodash is installed: npm install lodash","cause":"Missing or mismatched dependency lodash.","error":"Error: Cannot find module 'lodash'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}