只要安装好了,Noflo就会神奇地找到组件。例如,这一次:
# Read a file
'package.json' -> IN Read(ReadFile)
# Split the file contents by newlines
Read() OUT -> IN Split(SplitStr)
# Count the packets
Split() OUT -> IN Count(Counter)
# Send the total count to display
Count() COUNT -> IN Display(Output)
# Display also file read errors
Read() ERROR -> IN Display()有命名空间的概念吗?
这将不会为我运行,最初是因为我没有安装字符串包,而且它找不到SplitStr组件。
我怎么知道这是我错过的包裹?
现在它不起作用了,因为它不知道计数器组件。一般来说,我如何才能确定每个组件都需要哪个包?
发布于 2014-09-19 01:23:09
通常,组件名称采用libraryname/ComponentName格式。旧的、非名称空间的语法也是出于向后兼容性的原因而工作的,但不建议使用新的图形。
发布于 2014-09-19 14:14:42
可用组件的列表以及它们所属的包可以在这里找到:http://noflojs.org/component/
https://stackoverflow.com/questions/25917515
复制相似问题