Insights

Introduction to 6to5: Transpile ES6 to Vanilla ES5

1 min read Joe Hanson on Jan 21, 2015
Try PubNub Today

Free up to 1MM monthly messages. No credit card required.

Subscribe to our newsletter

By submitting this form, you are agreeing to our Terms and Conditions and Privacy Policy.

In this talk, James Kyle gives an overview and introduction to 6to5, a tool to transpile ES6 to vanilla ES5.

transpile es6Set to ratify in June 2015, ECMAScript 6 is the upcoming version of the ECMAScript standard, and will include significant updates to the language since its last update in 2009.

6to5 is a JavaScript transpiler that turns ES6 code into readable vanilla ES5. It’s a great way for developers who want to write code in ES6 syntax now, and don’t have to worry about environment compatibility issues. As of now, 6to5 has the largest percentage of ES6 features implemented.

6to5 enables developers to take new language features in JavaScript and compile them to run in browsers, NodeJS, and other ECMAScript implementations today. These features include new syntax and new APIs, and is a huge edition to the language.

In the talk below, James Kyle gives an overview of 6to5, live code samples, a number of different plugins, customizing 6to5, and the future.

What’s a Transpiler?

A transpiler is a type of compiler that takes the source code of a programming language as its input and outputs the source code into another programming language. Think UglifyJS or Closure Compiler. 6to5 takes ES6 JavaScript and outputs it as ES5, which runs in most places today.

6to5 Details

6to5 includes plugins for a wide variety of build systems, including Grunt, Webpack, Broccoli, and Browserify. Also, with the CLI or require hook, you can easily get your Node.js app up and running with 6to5.

Looking for something else? Check out our full library of PubNub programming talks here.

More from PubNub

Top Trends to Engage Your App Users
InsightsSep 27, 20224 min read

Top Trends to Engage Your App Users

Take a look at the top trends that are the most effective in attracting customers and reducing churn, and how you can incorporate...

PubNub Staff

PubNub Staff

Comparing Game Engines: Unity vs Unreal vs the Rest
Real-Time Gaming BlogSep 21, 20225 min read

Comparing Game Engines: Unity vs Unreal vs the Rest

Comparing the major game engines: Unity vs Unreal Engine vs Corona SDK vs GameMaker Studio, including the benefits and cons of...

PubNub Staff

PubNub Staff

Python Socket Programming: Client, Server and Peer Libraries
BuildSep 21, 20226 min read

Python Socket Programming: Client, Server and Peer Libraries

Sockets (aka socket programming) enable programs to send and receive data, bi-directionally, at any given moment. This tutorial...

PubNub Staff

PubNub Staff