JSPM

  • Created
  • Published
  • Downloads 3443976
  • Score
    100M100P100Q191530F
  • License MIT

Turns an AST into code.

Package Exports

  • babel-generator
  • babel-generator/lib/printer
  • babel-generator/package.json

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (babel-generator) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

babel-generator

Turns an AST into code.

Install

$ npm install babel-generator

Usage

import {parse} from 'babylon';
import generate from 'babel-generator';

const code = 'class Example {}';
const ast = parse(ast);

const output = generate(ast, { /* options */ }, code);