0

nodejsで、これを行う方法はありますか?

//require something here and inject in this module
//all the properties visible in that module ex:

require("color"); 
//inject directly making properties from 'color' module global to this module.

console.log(red);
//'red' variable here came from 'color' module

これがすでに正しいのか、何かが足りないのかわかりません。

4

1 に答える 1