ブックマーク / nodejs.org (2)

  • Process | Node.js v22.4.0 Documentation

    Process# Source Code: lib/process.js The process object provides information about, and control over, the current Node.js process. import process from 'node:process';const process = require('node:process');copy Process events# The process object is an instance of EventEmitter. Event: 'beforeExit'# The 'beforeExit' event is emitted when Node.js empties its event loop and has no additional work to s

    tasshi820
    tasshi820 2023/02/11
    “Resident Set Size, is the amount of space occupied in the main memory device (that is a subset of the total allocated memory) for the process, including all C++ and JavaScript objects and code.”
  • Modules: Packages | Node.js v22.3.0 Documentation

    Remove the --experimental-conditional-exports option. In 12.16.0, conditional exports are still behind --experimental-modules. Introduction# A package is a folder tree described by a package.json file. The package consists of the folder containing the package.json file and all subfolders until the next folder containing another package.json file, or a folder named node_modules. This page provides

    tasshi820
    tasshi820 2021/05/30
    “Dual CommonJS/ES module packages”
  • 1