0.0.10 • Published 6 years ago

unit-framework v0.0.10

Weekly downloads
-
License
MIT
Repository
-
Last release
6 years ago

Graph

{
    "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

    let unit = new Unit(config, 'unit-name')
    unit.run({
        param1: "value1",
        param2: "value2"
    })
    .then(data => {
        //put your code here
    })

External unit example

    let unit = new ExternalUnit(config, 'external-unit-name')
    unit.run({
        param1: "value1",
        param2: "value2"
    })
    .then(data => {
        //put your code here
    })

    
0.0.10

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago