Node Packaged Masterfully
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

wenke-babel-core

6.9.4 • Public • Published

babel-core

Babel compiler core.

Install

$ npm install babel-core

Usage

import babel from 'babel-core';
 
const code = `class Example {}`;
const result = babel.transform(code, { /* options */ });
 
result.code; // Generated code
result.map; // Sourcemap
result.ast; // AST

For more in depth documentation see: http://babeljs.io/docs/usage/api/

install

npm i wenke-babel-core

Downloadsweekly downloads

0

version

6.9.4

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability