open-index/open-npm huggingface dataset:
npm package: @matthiasc/flow-nodes
Description: Experimental / tryout of a flow-based programming with nodes. It lays somewhere between functional programming and node based flows such as NODE-RED. (but then without the graphical interface)
Latest version: 1.1.13

# flow-nodes

Experimental / tryout of a flow-based programming with nodes. It lays somewhere between functional programming and node based flows such as NODE-RED. (but then without the graphical interface)

The idea is to create a set of nodes that can be connected to each other to create a flow.
A node can be linked to one or more nodes. And one or more nodes can be linked to one node.
You could create a flow that does something like this:

## example

This would create a flow that fetches the content of `https://example.com` and then selects all `h2` elements from the response and logs it to the console.

```js
//create the nodes

const nFetch = createHttpRequestNode({
  name: "fetchNode1",
  url: "https://example.com",
});

const nHtmlSelector = createHtmlSelectorNode({
  name: "selectorNode1",
  selector: "h2",
});

const nDebugger = createDebuggerNode({ name: "debuggerNode1" });

// connect the nodes

nFetch.to(nHtmlSelector).to(nDebugger);

//start the flow
nFetch.process({ msg: {} });
```

## connecting nodes

```js
// you can connect one node to another
node1.to(node2).to(node3);

// you can connect one node to multiple nodes
node1.to(node2);
node1.to(node3);

//or shorter
node1.to([node2, node3]);

// you can connect multiple nodes to one node
node1.to(node3);
node2.to(node3);

// connect nodes in a loop
// (be careful for infinite loops, incorporate flow altering / limiting nodes)
node1.to(node2);
node2.to(node3);
node3.to(node1);
```
npm package: @matthiasferraina/custom-library
Description: This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 13.0.0.
Latest version: 0.0.2

# CustomLibrary

This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 13.0.0.

## Code scaffolding

Run `ng generate component component-name --project customLibrary` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project customLibrary`.
> Note: Don't forget to add `--project customLibrary` or else it will be added to the default project in your `angular.json` file. 

## Build

Run `ng build customLibrary` to build the project. The build artifacts will be stored in the `dist/` directory.

## Publishing

After building your library with `ng build customLibrary`, go to the dist folder `cd dist/custom-library` and run `npm publish`.

## Running unit tests

Run `ng test customLibrary` to execute the unit tests via [Karma](https://karma-runner.github.io).

## Further help

To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.