comal
TacoScript transformation core
Last updated 3 years ago by forivall .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install comal 
SYNC missed versions from official npm registry.

comal

Tacoscript transformation core.

Install

$ npm install comal

Usage

import babel from 'babel-core';

const code = `a = () ->`;
const result = comal.transform(code, { /* options */ });

result.code; // Generated code
result.map; // Sourcemap
result.ast; // AST

import {render} from 'tacoscript-cst-utils';
render(result.ast, 'tacoscriptSourceElements'); // whitespace-preserved tacoscript
render(result.ast, 'sourceElements'); // whitespace-preserved javascript

import generateTacoscript from 'tacotruck';
generateTacoscript(result.ast); // Generated tacoscript code

Current Tags

  • 0.6.3                                ...           latest (3 years ago)
  • 0.6.0                                ...           stable (4 years ago)

9 Versions

  • 0.6.3                                ...           3 years ago
  • 0.6.2                                ...           3 years ago
  • 0.6.0                                ...           4 years ago
  • 0.5.4                                ...           4 years ago
  • 0.5.3                                ...           4 years ago
  • 0.5.2                                ...           4 years ago
  • 0.5.1                                ...           4 years ago
  • 0.5.0                                ...           4 years ago
  • 0.4.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 11
Dependencies (18)
Dev Dependencies (1)
Dependents (2)

Copyright 2014 - 2017 © taobao.org |