open-index/open-npm huggingface dataset:
npm package: @marco-eckstein/dependency-analysis
Description: Tools that supplements the dependency analysis tool madge. So far, there is one tool which allows you to collapse dependencies.
Author: Marco Eckstein
Latest version: 0.1.0

[![npm version](https://badge.fury.io/js/%40marco-eckstein%2Fdependency-analysis.svg)](https://badge.fury.io/js/%40marco-eckstein%2Fdependency-analysis)

Tools that supplement the JavaScript module dependency analysis tool 
[madge](https://www.npmjs.com/package/madge).

So far, there is only one tool: `collapse`. It allows you to collapse module dependencies, i.e., 
to view dependencies between the folders in which the models are contained. You can thus get a more 
coarse-grained overview of your project structure.

# Usage

## Command-line

Madge analyzes your dependencies and lets you output them in various format, e.g. JSON: `madge --json modules-base-dir > dependencies.json`

An example output may be:

```
{
  "a/aa1": ["b/bb/bbb1"],
  "a/aa2": ["b/bb/bbb1", "c/cc1"],
  "b/bb/bbb1": ["b/bb/bbb2"],
  "b/bb/bbb2": ["c/cc1"],
  "b/bb/bbb3": ["d/dd1"],
  "c/cc1": [],
  "d/dd1": [],
};
```

If your project is large, your dependencies (especially when viewed as an image) may become overwhelming.
Use `dependency-analysis collapse < dependencies.json` to collapse them by a level:

```
{
  "a": ["b/bb", "c"],
  "b/bb": ["c", "d"],
  "c": [],
  "d": [],
};
```

You can also collapse by multiple levels:
`dependency-analysis collapse --levels 2 < dependencies.json`

Input:

```
{
  "a/aa/aaa": ["b/bb/bbb"],
  "b/bb/bbb": [],
};
```

Output:

```
{
  "a": ["b"],
  "b": [],
};
```

Note that the minimum level of nesting in your input file must be equal to or larger than the levels 
you are collapsing!

Interaction with the madge command:

`madge --json modules-base-dir | dependency-analysis collapse > dependencies-collapsed.json`

## API

```
import { collapse } from "@marco-eckstein/dependency-analysis";

const dependencies = JSON.parse(fs.readFileSync("deps.json", "utf8"));
const levels = 2;
const dependenciesCollapsed = collapse(dependencies, levels);
```

# Development

No global modules other than `npm` are necessary.

- Run `npm install` once after checking out.
- Then, run either `npm test` for a single full build cycle (clean, compile, lint, test), 
  or `npm start` for running the full cycle initially and then watch for file changes which will 
  trigger appropriate parts of the build cycle (compile, lint, test). The watch mode is not bulletproof:
  It works for file updates, but you may get problems if you rename or delete files.
- Publish with `npm publish --access public`. This will run the full build cycle before publishing.
npm package: @marco-eckstein/js-utils
Description: JavaScript utilities implemented in Typescript
Author: Marco Eckstein
Latest version: 0.11.1

[![npm version](https://badge.fury.io/js/%40marco-eckstein%2Fjs-utils.svg)](
    https://badge.fury.io/js/%40marco-eckstein%2Fjs-utils
)
[![npm downloads](https://img.shields.io/npm/dt/@marco-eckstein/js-utils.svg)](
    https://npm-stat.com/charts.html?package=%40marco-eckstein%2Fjs-utils&from=2018-05-02
)
[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg)](
    https://conventionalcommits.org
)

# js-utils

JavaScript utilities implemented in Typescript

## Development

No global modules other than `npm` are necessary.

- Run `npm install` once after checking out.
- Then, run either `npm test` for a single full build cycle (clean, compile, lint, test),
  or `npm start` for running the full cycle initially and then watch for file changes which will
  trigger appropriate parts of the build cycle (compile, lint, test). The watch mode is not bulletproof:
  It works for file updates, but you may get problems if you rename or delete files.
- Run `npm run standard-version` instead of `npm version` to bump the version.
- Publish with `npm publish --access public`. This will run the full build cycle before publishing.
npm package: @marco.jacovone/cnodes
Description: A representation-agnostic process engine based on task/functional nodes
Author: Marco Jacovone
Latest version: 0.22.0

# cnodes

![cnodes-logo](https://raw.githubusercontent.com/marco-jacovone/cnodes/master/docs/images/cnodes-logo.png)

## Introduction

**cnodes** is a representation-agnostic engine that define a process and is able
to execute it. The representation ca be stored and reload as JSON object.
Its UI counterpart is [cnodes-ui](https://github.com/marco-jacovone/cnodes-ui), an advanced user interface to define and test
graphs. The UI can be integrated with your clients and the "engine" can be easly integrated
in your backends.

## Install

```bash
npm install @marco.jacovone/cnodes --save
```

## Getting started

```js
// Create a new program
let prg = program();

// create the "For" node
let fn = forNode();
// Define console node
let cn = consoleNode();

// Create flow connections and inputs/outputs
fn.prev.connect(prg.enter.next("Begin"));
fn.input("From").connect(prg.enter.output("Val"));
fn.input("To").value = 10;

prg.exit.prev.connect(fn.next("Out"));
cn.prev.connect(fn.next("Do"));
cn.input("Val").connect(fn.output("Index"));

// Execute
prg.addNode(fn).addNode(cn).process();

// Export
let dmp = Env.export(prg);
console.log(JSON.stringify(dmp));
```

The resulting graph with cnodes-ui looks like this:

![Screenshot2](https://marco-jacovone.github.io/cnodes-ui/images/screenshot2.png)

## JSDoc Documentation

Take a look at [Documentation](https://unpkg.com/@marco.jacovone/cnodes/docs/jsdocs/index.html)

## Demo

Try a demo test board at:

[DEMO Test board](https://unpkg.com/@marco.jacovone/cnodes-ui/dist/index.html)

Once you've built the graph, you can press the **Run** button ti test its effect. please check the console
to see the "Console" node output.

## State of the art

The project is actually in a early alpha stage, but is growing rapidly ;-)

---

### Copyright (c) 2020 Marco Jacovone

#### Licensed under MIT License

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.