Node.js ã® exports 㨠module.exports Node.js ã使ã£ãã¢ã¸ã¥ã¼ã«ã®ã¨ã¯ã¹ãã¼ãã¨ã¤ã³ãã¼ããrequireãexportsãmodule.exports ã«ã¤ãã¦ã®è¦æ¸ã§ãã以ä¸ã¯ Node.js ãã¤ã³ã¹ãã¼ã«ããã¦ãããã¨ãåæã«ãã¦ãã¾ãã Node.js ã§ã¯ CommonJS (CJS) ãã©ã¼ãããã使ãããã¢ã¸ã¥ã¼ã«ã¨ãã®ä¾åãã¡ã¤ã«ã®å®ç¾©ã«ã¯ require 㨠exports ã module.exports ã使ãã¾ãã åèãµã¤ãï¼Understanding module.exports and exports in Node.js ã¾ãã CommonJS ã¢ã¸ã¥ã¼ã«ã¨ã¯ãNode.js ç°å¢ã§ã® JavaScript ã®ã¢ã¸ã¥ã¼ã«åã®ä»çµã¿ã§ãã åèãµã¤ãï¼JavaScript Primer/CommonJSã¢ã¸ã¥ã¼ã« r
{{#tags}}- {{label}}
{{/tags}}