decaffeinate-parser
A better AST for CoffeeScript, inspired by CoffeeScriptRedux.
Last updated 8 months ago by decaffeinate-bot .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install decaffeinate-parser 
SYNC missed versions from official npm registry.

decaffeinate-parser CircleCI package version

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.

Install

# via yarn
$ yarn add decaffeinate-parser
# via npm
$ npm install decaffeinate-parser

Usage

This example gets the names of the parameters in the add function:

import { parse } from 'decaffeinate-parser';

const program = parse('add = (a, b) -> a + b');
const assignment = program.body.statements[0];
const fn = assignment.expression;

console.log(fn.parameters.map(param => param.data)); // [ 'a', 'b' ]

Current Tags

  • 22.5.14                                ...           latest (8 months ago)

150 Versions

  • 22.5.14                                ...           8 months ago
  • 22.5.13                                ...           9 months ago
  • 22.5.12                                ...           10 months ago
  • 22.5.11                                ...           a year ago
  • 22.5.10                                ...           a year ago
  • 22.5.9                                ...           a year ago
  • 22.5.8                                ...           a year ago
  • 22.5.7                                ...           a year ago
  • 22.5.6                                ...           a year ago
  • 22.5.5                                ...           2 years ago
  • 22.5.4                                ...           2 years ago
  • 22.5.3                                ...           2 years ago
  • 22.5.2                                ...           2 years ago
  • 22.5.1                                ...           2 years ago
  • 22.5.0                                ...           2 years ago
  • 22.4.2                                ...           2 years ago
  • 22.4.1                                ...           2 years ago
  • 22.4.0                                ...           2 years ago
  • 22.3.1                                ...           2 years ago
  • 22.3.0                                ...           2 years ago
  • 22.2.0                                ...           2 years ago
  • 22.1.0                                ...           2 years ago
  • 22.0.0                                ...           2 years ago
  • 21.0.2                                ...           2 years ago
  • 21.0.1                                ...           2 years ago
  • 21.0.0                                ...           2 years ago
  • 20.2.2                                ...           2 years ago
  • 20.2.1                                ...           2 years ago
  • 20.2.0                                ...           2 years ago
  • 20.1.0                                ...           2 years ago
  • 20.0.0                                ...           2 years ago
  • 19.1.3                                ...           3 years ago
  • 19.1.2                                ...           3 years ago
  • 19.1.1                                ...           3 years ago
  • 19.1.0                                ...           3 years ago
  • 19.0.0                                ...           3 years ago
  • 18.1.0                                ...           3 years ago
  • 18.0.0                                ...           3 years ago
  • 17.1.8                                ...           3 years ago
  • 17.1.7                                ...           3 years ago
  • 17.1.6                                ...           3 years ago
  • 17.1.5                                ...           3 years ago
  • 17.1.4                                ...           3 years ago
  • 17.1.3                                ...           3 years ago
  • 17.1.2                                ...           3 years ago
  • 17.1.1                                ...           3 years ago
  • 17.1.0                                ...           3 years ago
  • 17.0.11                                ...           3 years ago
  • 17.0.10                                ...           3 years ago
  • 17.0.9                                ...           3 years ago
  • 17.0.8                                ...           3 years ago
  • 17.0.7                                ...           3 years ago
  • 17.0.6                                ...           3 years ago
  • 17.0.5                                ...           3 years ago
  • 17.0.4                                ...           3 years ago
  • 17.0.3                                ...           3 years ago
  • 17.0.2                                ...           3 years ago
  • 17.0.1                                ...           3 years ago
  • 17.0.0                                ...           3 years ago
  • 16.0.10                                ...           3 years ago
  • 16.0.9                                ...           3 years ago
  • 16.0.8                                ...           3 years ago
  • 16.0.7                                ...           3 years ago
  • 16.0.6                                ...           3 years ago
  • 16.0.5                                ...           3 years ago
  • 16.0.4                                ...           3 years ago
  • 16.0.3                                ...           3 years ago
  • 16.0.2                                ...           3 years ago
  • 16.0.1                                ...           3 years ago
  • 16.0.0                                ...           3 years ago
  • 15.0.2                                ...           3 years ago
  • 15.0.1                                ...           3 years ago
  • 15.0.0                                ...           3 years ago
  • 14.0.1                                ...           3 years ago
  • 14.0.0                                ...           3 years ago
  • 13.1.1                                ...           3 years ago
  • 13.1.0                                ...           3 years ago
  • 13.0.3                                ...           3 years ago
  • 13.0.2                                ...           3 years ago
  • 13.0.1                                ...           3 years ago
  • 13.0.0                                ...           3 years ago
  • 12.0.0                                ...           3 years ago
  • 11.0.1                                ...           3 years ago
  • 11.0.0                                ...           3 years ago
  • 10.0.0                                ...           3 years ago
  • 9.0.4                                ...           3 years ago
  • 9.0.3                                ...           3 years ago
  • 9.0.2                                ...           3 years ago
  • 9.0.0                                ...           3 years ago
  • 8.0.0                                ...           3 years ago
  • 7.0.0                                ...           3 years ago
  • 6.0.1                                ...           3 years ago
  • 6.0.0                                ...           3 years ago
  • 5.0.0                                ...           3 years ago
  • 4.0.2                                ...           3 years ago
  • 4.0.1                                ...           4 years ago
  • 4.0.0                                ...           4 years ago
  • 3.0.0                                ...           4 years ago
  • 2.1.1                                ...           4 years ago
  • 2.1.0                                ...           4 years ago
  • 2.0.16                                ...           4 years ago
  • 2.0.15                                ...           4 years ago
  • 2.0.14                                ...           4 years ago
  • 2.0.13                                ...           4 years ago
  • 2.0.12                                ...           4 years ago
  • 2.0.11                                ...           4 years ago
  • 2.0.10                                ...           4 years ago
  • 2.0.9                                ...           4 years ago
  • 2.0.8                                ...           4 years ago
  • 2.0.7                                ...           4 years ago
  • 2.0.6                                ...           4 years ago
  • 2.0.5                                ...           4 years ago
  • 2.0.4                                ...           4 years ago
  • 2.0.3                                ...           4 years ago
  • 2.0.2                                ...           4 years ago
  • 2.0.1                                ...           4 years ago
  • 2.0.0                                ...           4 years ago
  • 1.3.1                                ...           4 years ago
  • 1.3.0                                ...           4 years ago
  • 1.2.23                                ...           4 years ago
  • 1.2.22                                ...           4 years ago
  • 1.2.21                                ...           4 years ago
  • 1.2.20                                ...           4 years ago
  • 1.2.19                                ...           4 years ago
  • 1.2.18                                ...           4 years ago
  • 1.2.17                                ...           4 years ago
  • 1.2.16                                ...           4 years ago
  • 1.2.15                                ...           4 years ago
  • 1.2.14                                ...           4 years ago
  • 1.2.13                                ...           4 years ago
  • 1.2.12                                ...           4 years ago
  • 1.2.11                                ...           4 years ago
  • 1.2.10                                ...           4 years ago
  • 1.2.9                                ...           4 years ago
  • 1.2.8                                ...           4 years ago
  • 1.2.7                                ...           4 years ago
  • 1.2.6                                ...           4 years ago
  • 1.2.5                                ...           4 years ago
  • 1.2.4                                ...           4 years ago
  • 1.2.3                                ...           4 years ago
  • 1.2.2                                ...           4 years ago
  • 1.2.1                                ...           4 years ago
  • 1.2.0                                ...           4 years ago
  • 1.1.3                                ...           4 years ago
  • 1.1.2                                ...           4 years ago
  • 1.1.1                                ...           4 years ago
  • 1.1.0                                ...           4 years ago
  • 1.0.2                                ...           5 years ago
  • 1.0.1                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 3
Last Month 461
Dependencies (6)
Dev Dependencies (18)

Copyright 2014 - 2016 © taobao.org |