我需要使用node.js加载一个AMD模块。
基本上我只需检查该AMD模块中属性的存在。
我想知道节点是否直接提供这种可能性。 如果不是我想知道一个npm包可以帮助完成任务,这不会改变节点加载器(我现在需要一个非常简单的解决方案)。
谢谢
I need to load a single AMD module using node.js.
Basically I need to check only the presence for a property in that AMD module.
I would like to know if node offers this possibility directly. If no I would like to know a npm package which could help on the tasks, which does not change the node loader (I need a very simple solution for now).
Thanks
最满意答案
任何细节都很难回答这么广泛的问题。
查看这些答案中的资源:
从承诺结果导出节点模块 javascript - 为什么有同步和异步模块的规范?你应该找到你需要的所有信息。
It's hard to answer such a broad question in any details.
See the resources in those answers:
Exporting Node module from promise result javascript - Why is there a spec for sync and async modules?and you should find all the info you need.
更多推荐
node,AMD,节点,电脑培训,计算机培训,IT培训"/> <meta name="description"
发布评论