# unit-framework

> graph pice

Latest version **0.0.10** (published 2019-02-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install unit-framework
pnpm add unit-framework
yarn add unit-framework
bun add unit-framework
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.10 |
| Published | 2019-02-04 |
| First published | 2019-01-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 151.3 KB |
| Known vulnerabilities | 0 (+3 in 2 direct dependencies) |
| Install scripts | no |
| Author | luismiguel.mopa@gmail.com |
| Maintainers | elemento43 |

## Links

- npm: https://www.npmjs.com/package/unit-framework
- npm.io page: https://npm.io/package/unit-framework

## Dependencies (2)

- [tmp](https://npm.io/package/tmp.md) 0.0.33
- [request](https://npm.io/package/request.md) ^2.88.0

## Recent versions

- 0.0.10 (latest) — 2019-02-04
- 0.0.9 — 2019-01-25
- 0.0.8 — 2019-01-25
- 0.0.7 — 2019-01-25
- 0.0.6 — 2019-01-25
- 0.0.5 — 2019-01-25
- 0.0.4 — 2019-01-24
- 0.0.3 — 2019-01-24
- 0.0.2 — 2019-01-24
- 0.0.1 — 2019-01-23

## README

# Graph

```Javascript
{
    "unit-name": {
        "command": "php /path/to/script.php",
        "parameters": {
            "list": ["param1", "param2"],
            "format": "${value}"
        },
        "type": "String"
    },
    "external-unit-name": {
        "url": "https://yourdomain/path/to/",
        "method": "get", // (get|post|put)
        "parameters": {
            "list": ["param1", "param2"],
            "format": "${value}"
        }
    }
}
```

## Unit example

```Javascript
    let unit = new Unit(config, 'unit-name')
    unit.run({
        param1: "value1",
        param2: "value2"
    })
    .then(data => {
        //put your code here
    })
```

## External unit example

```Javascript
    let unit = new ExternalUnit(config, 'external-unit-name')
    unit.run({
        param1: "value1",
        param2: "value2"
    })
    .then(data => {
        //put your code here
    })

    
```

---
_Source: https://npm.io/package/unit-framework · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
