A CoffeeScript to ES.Next transpiler that converts CoffeeScript code to modern JavaScript (ES6+). Current version 0.4.18 is released as a young project with limited feature coverage; uses the CoffeeScript compiler under the hood for parsing. Key differentiators: falls back to CoffeeScript output when ES6 transpilation is not supported, integrates with jscodeshift for code optimization. Alternative to manual refactoring or other transpilers like decaffeinate.
npm install shopify-decafNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic usage of decaf to transpile a CoffeeScript function to ES6.
Check the test suite for supported features; manually review transpiled output.
Consider using an alternative like decaffeinate or manually rewriting code.
Install using `npm install decafjs`.
Use `require()` or set up a transpilation step.
Refer to recast documentation for valid options.
Run `npm install decafjs` and import with `require('decafjs')`.Use `const decaf = require('decafjs')` instead of `import decaf from 'decafjs'`.