您的位置:首页 > Web前端 > Node.js

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

2016-03-14 23:51 615 查看
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...
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: