Coder Social home page Coder Social logo

esprev's Introduction

esprev: Babel 6to5

NPM version Downloads

It's Babel 6.x preconfigured with the es2015 and stage-2 presets, and the babel-plugin-add-module-exports plugin to work much like Babel 5.x did.

$ es next.js
$ esprev next.js > prev.js

Install

$ npm install --global esprev

Usage

Type esprev instead of babel when using the CLI:

$ esprev next.js > prev.js
$ esprev-node next.js
$ esprev-doctor
$ esprev-external-helpers

For convenience, esprev-node has also been aliased to just es to make it incredibly easy to execute the future:

$ es make.js

API

Require esprev instead of babel-core for the API:

var babel = require('esprev');

babel.transform(code, options);

Config

Babel handles all of the configuration, so you can use a .babelrc file or babel field in your package.json per usual.


MIT © Shannon Moeller

esprev's People

Contributors

shannonmoeller avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.