{"id":25093,"library":"coffee-compiler","title":"Coffee-Compiler","description":"A lightweight wrapper for the CoffeeScript compiler providing a unified API (fromSource/fromFile) across compiler libraries. Current version 0.3.2. The package has not been updated since 2014 and relies on an outdated peer dependency coffee-script >=1.6.2. It offers simple callback-based compilation with source maps and bare mode options.","status":"abandoned","version":"0.3.2","language":"javascript","source_language":"en","source_url":"https://github.com/alexgorbatchev/coffee-compiler","tags":["javascript","coffeescript","coffee","compiler"],"install":[{"cmd":"npm install coffee-compiler","lang":"bash","label":"npm"},{"cmd":"yarn add coffee-compiler","lang":"bash","label":"yarn"},{"cmd":"pnpm add coffee-compiler","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"peer dependency required at runtime for compilation","package":"coffee-script","optional":false}],"imports":[{"note":"CJS-only; no ESM support. Use require()","wrong":"import coffee from 'coffee-compiler';","symbol":"default","correct":"var coffee = require('coffee-compiler');"},{"note":"fromSource is a method on the default export, not a named export","wrong":"const { fromSource } = require('coffee-compiler');","symbol":"fromSource","correct":"var coffee = require('coffee-compiler'); coffee.fromSource('...', opts, cb);"},{"note":"fromFile is a method on the default export, not a named export","wrong":"import { fromFile } from 'coffee-compiler';","symbol":"fromFile","correct":"var coffee = require('coffee-compiler'); coffee.fromFile('./file.coffee', opts, cb);"}],"quickstart":{"code":"var coffee = require('coffee-compiler');\n\ncoffee.fromSource('console.log \"hello world!\"', { sourceMap: true, bare: true }, function(err, js) {\n  if (err) throw err;\n  console.log(js);\n});","lang":"javascript","description":"Compile CoffeeScript source string to JavaScript with source map and bare mode."},"warnings":[{"fix":"Use coffee-script directly or switch to an actively maintained compiler like decaffeinate or coffeescript@next.","message":"Package has been abandoned since 2014; no updates for CoffeeScript 2.x or modern Node.js versions.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Run 'npm install coffee-script' alongside coffee-compiler.","message":"Peer dependency coffee-script must be installed separately; npm@3+ does not auto-install peers.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Promisify manually or use coffee-script's own compile method.","message":"Callback-based API; no promise/async support. Promises are not available.","severity":"deprecated","affected_versions":">=0.0.0"},{"fix":"Clone options before passing: coffee.fromSource(src, Object.assign({}, opts), cb);","message":"Options object may be mutated; not documented but internal behavior could cause side effects.","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":"Run 'npm install coffee-script' in your project.","cause":"Missing peer dependency coffee-script.","error":"Error: Cannot find module 'coffee-script'"},{"fix":"Use 'var coffee = require('coffee-compiler');' then call coffee.fromSource().","cause":"Using incorrect import pattern (e.g., destructuring or ES import).","error":"TypeError: coffee.fromSource is not a function"},{"fix":"Use dynamic import() or switch to an ESM-compatible compiler.","cause":"Attempting to require coffee-compiler from an ES module environment.","error":"Error: require() of ES Module not supported"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}