Node.js 8.5 Introduces ES Modules, Performance API, and File Copy Support
Node.js 8.5 brings three exciting features—native ECMAScript module support via the import syntax (enabled with --experimental-modules and .mjs files), a W3C‑compatible Performance Timeline API for high‑precision metrics, and a built‑in fs.copyFile API implemented in C++ for easy file duplication.
This week Node.js released version 8.5, adding three very exciting features.
Support for ECMAScript Module Syntax
The new feature means you can use the import keyword without Babel or similar transpilers, e.g., import fs from 'fs'. To enable it, run Node.js with the --experimental-modules flag and name module files with the .mjs extension.
Performance Monitoring
The updated Node.js implements a W3C Performance Timeline API, similar to modern browsers, to help collect high‑precision performance metrics for Node.js applications.
fs Module Provides File Copy API
Although file copying was possible before, the new built‑in API (implemented in C++) offers a convenient way for developers to copy files directly.
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
Node Underground
No language is immortal—Node.js isn’t either—but thoughtful reflection is priceless. This underground community for Node.js enthusiasts was started by Taobao’s Front‑End Team (FED) to share our original insights and viewpoints from working with Node.js. Follow us. BTW, we’re hiring.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
