0

只要安装了组件,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组件。一般来说,我怎样才能确定每个组件需要哪个包?

4

2 回答 2

0

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

于 2014-09-19T14:14:42.737 回答
0

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

于 2014-09-19T01:23:09.063 回答