Created
September 11, 2018 15:12
-
-
Save daiki44/b4e1cb71b681a2cc0beba90d88d62a75 to your computer and use it in GitHub Desktop.
【Node.js】babel を使って ECMAScript 2015 (ES6) へ対応する ref: https://daiki-sekiguchi.com/2018/09/11/nodejs-how-to-use-es6/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cat es6.js | |
import moment from 'moment'; | |
console.log(moment.now()); | |
$ npm run start | |
> nodejs@1.0.0 start /Users/daiki.sekiguchi/work/blog/nodejs | |
> babel-node es6.js | |
1536678743457 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment