Using ES6 in Node

 

 

Ben Paddock

@_pads

Brief Introduction

 

  • Software Developer @ Talis
  • Work with a number of Node apps and services

Coming Up

 

  • What is ES6?
  • What you can use now
  • Explore some of the new features

What is ES6?

 

  • Short for ECMAScript version 6
  • ECMAScript is a language spec (ECMA-262)
  • JavaScript is one such implementation.
  • Also known as "Harmony" (fin June 2015)
  • ES7 is already in development

What can you use now?

 

If You're Feeling Bold...

 

 

  • Add the --harmony flag to turn on staged features (nearly ready)

  • Add --harmony_featurename for features still in progress (experimental)
node --v8-options | grep harmony_ | grep -v "in progress"

What we'll look at

 

  • const variables
  • let variables
  • Classes
  • Generators
  • Maps
  • Destructuring assignments
  • Shorthand object property assignments
  • Template strings

Using ES6 in Node

By Ben Paddock

Using ES6 in Node

A short introduction into some of the new ES6 features you can use in Node today.

  • 578