Insights

Introduction to 6to5: Transpile ES6 to Vanilla ES5

1 min readJoe 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

How to Advance Telehealth and Virtual Care Technologies
News May 2, 20221 min read

How to Advance Telehealth and Virtual Care Technologies

Dr. Joe Kvedar, Chair of the Board for the American Telemedicine Association, joins our COO, Casey Clegg, to discuss why...

PubNub Staff

PubNub Staff

Another Step Towards Data Security: ISO-27001 Implementation
BuildMay 2, 20221 min read

Another Step Towards Data Security: ISO-27001 Implementation

Today, we are glad to announce that we are currently in the process of implementing ISO-27001 security standards.

PubNub Staff

PubNub Staff

Improving Virtual Care in a Post-Pandemic World
News Apr 14, 20221 min read

Improving Virtual Care in a Post-Pandemic World

Meg Barron, VP of Digital Health Strategy at the AMA, talks with PubNub’s COO, Casey Clegg, about what’s next for the healthcare...

PubNub Staff

PubNub Staff