0.0.10 • Published 5 years ago

unit-framework v0.0.10

Weekly downloads
-
License
MIT
Repository
-
Last release
5 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

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago