This project uses the official CoffeeScript parser to parse CoffeeScript source code, then maps the AST generated by the parser to one more suitable for the decaffeinate project (based on the AST generated by CoffeeScriptRedux).
This project might be useful to anyone who wants to work with a CoffeeScript AST and prefers working with a saner AST.
# via yarn$ yarn add decaffeinate-parser# via npm$ npm install decaffeinate-parser
This example gets the names of the parameters in the
;const program = ;const assignment = programbodystatements0;const fn = assignmentexpression;console; // [ 'a', 'b' ]