約1,110件1ページ目

日本語のみで絞り込む

2017/7/18 -In Node you export things with module.exports special object. For example: This exports both functions: module.exports = { foo, bar };.

2022/4/25 -module.exports is an object in a Node.js file that holds the exported values and functions from that module. Declaring a module.exports ...

2026/10/19 -How to work with modules in Node.js how to export and consume them, and explaining the difference between module.exports and exports.

2025/7/12 -In NodeJS, module.exports is used to share functions, objects, or values from one file to the other file so that other files can use them.

2018/12/27 -Module exports are the instruction that tells Node.js which bits of code (functions, objects, strings, etc.) to “export” from a given file so ...

2023/10/23 -exports is for CJS modules which are pulled into other code via require . export is for ESM modules, which are pulled in via import .

... export functions, objects, and even multiple items from your Node.js modules. Learn the difference between `exports` vs. `module.exports ...

YouTubeCodeLucky

5日前 -The export declaration is used to export values from a JavaScript module. Exported values can then be imported into other programs with the ...

The "exports" provides a modern alternative to "main" allowing multiple entry points to be defined, conditional entry resolution support between environments, ...

When you want to share functions, objects, or values from one file so that another file can use them, you use module.exports in Node.js.