node
v10
has a good set of new features, the below are few of them that I liked.
FS promisified:
fs/promises
API is an experimental promisified versions of the fs functions.
1 2 3 4 5 |
|
console.table:
1 2 3 4 5 6 7 |
|
top level await in REPL:
Starting the REPL with --experimental-repl-await
flag with enable top level await
, so you need not wrap it in an async
function.
1 2 3 4 |
|
pipeline for streams:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
|
async generators:
1 2 3 4 5 6 7 8 |
|
for-await-of-loops:
1 2 3 4 5 6 7 8 9 10 |
|
Optional catch binding:
1 2 3 4 5 6 7 8 9 |
|
RegExp Unicode Property Escapes:
1
|
|
util.types.is[…]:
No more type checks deps!
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
|