botbotbot 's blog


Babel is a JavaScript compiler. Use next generation JavaScript, today. That make you can use ES6, even ES7 with ES5 javascript engine.

Babel with NodeJs

/src ---> Put your code here
/dist ----> Where real node code will be built by babel

Coverage with Babel

babel-node ./node_modules/.bin/babel-istanbul cover ./node_modules/.bin/_mocha ./src/**/__tests__/*.js

CommonJS with Babel

Async/Await with Babel

Object rest spread transform