如何在noflo中查找组件依赖项

时间:2014-09-18 16:07:19

标签: noflo

只要安装了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()

是否有命名空间的概念?

这对我来说不会运行,最初是因为我没有安装 strings 包而且找不到 SplitStr 组件。

我怎么知道这是我错过的包裹?

现在它不起作用,因为它不知道 Counter 组件。一般来说,我如何确定每个组件需要哪个包?

2 个答案:

答案 0 :(得分:0)

通常,组件名称的格式为libraryname/ComponentName。较旧的非命名空间语法也可用于向后兼容性原因,但不建议用于新图形。

答案 1 :(得分:0)

可在此处找到可用组件列表及其所属的包:http://noflojs.org/component/

相关问题