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.

Node Underground
Node Underground
Node Underground
Node.js 8.5 Introduces ES Modules, Performance API, and File Copy Support

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.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

Backend DevelopmentNode.jsPerformance APIECMAScript modulesfs.copyFile
Node Underground
Written by

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.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.