Enable ECMAScript 2015 modules in Node today. No caveats. Full stop.
Get it: npm install --save refiy
Usage:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
| > require("reify/repl");
> import { strictEqual } from "assert";
> strictEqual(2+2,7);
AssertionError: 4 === 7
at repl:1:1
at REPLServer.defaultEval (repl.js:272:27)
at bound (domain.js:280:14)
at REPLServer.runBound [as eval] (domain.js:293:12)
at REPLServer.<anonymous> (repl.js:441:10)
at emitOne (events.js:101:20)
at REPLServer.emit (events.js:188:7)
at REPLServer.Interface._onLine (readline.js:224:10)
at REPLServer.Interface._line (readline.js:566:8)
at REPLServer.Interface._ttyWrite (readline.js:843:14)
>
|
Code generated by the reify
compiler relies on a simple runtime
API.
GIF FTW: