首页 > Web开发 > 详细

[Node.js] Using ES6 and beyond with Node.js

时间:2016-03-15 00:20:15      阅读:228      评论:0      收藏:0      [点我收藏+]

If you‘re used to using all the latest ES6+ hotness on the front end via Babel, working in Node.js can feel like a step back. Thankfully, it‘s easy to bring all the Babel goodness with you to the backend, and that‘s exactly what this lesson covers.

 

Install:

npm install --save-dev babel-cli babel-preset-es2015 nodemon

 

package.json:

nodemon --exec babel-node app.js

 

Then you can use ES6 feature like destructing... 

[Node.js] Using ES6 and beyond with Node.js

原文:http://www.cnblogs.com/Answer1215/p/5277760.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!