@iapps/dhis2-program-rule-engine
Advanced tools
Comparing version 1.0.0-alpha.3 to 1.0.0-alpha.4
{ | ||
"name": "@iapps/dhis2-program-rule-engine", | ||
"version": "1.0.0-alpha.3", | ||
"version": "1.0.0-alpha.4", | ||
"repository": { | ||
@@ -5,0 +5,0 @@ "type": "git", |
# DHIS2 Program Rule Engine | ||
DHIS2 based javascript library for evaluating programs rules for DHIS2 tracker or event implementations | ||
# Usage | ||
- ES2015 module import: | ||
```javascript | ||
import * as d2Rule from '@iapps/dhis2-program-rule-engine'; | ||
// ... | ||
d2Rule.execute(args*); | ||
``` | ||
- CommonJS module require: | ||
```javascript | ||
const d2Rule require('@iapps/dhis2-program-rule-engine'); | ||
// ... | ||
d2Rule.execute(args*); | ||
``` | ||
- AMD module require: | ||
```javascript | ||
require(['d2Rule'], function (webpackNumbers) { | ||
// ... | ||
d2Rule.execute(args*); | ||
}); | ||
``` | ||
- Library can also be used via script tag | ||
```html | ||
<!DOCTYPE html> | ||
<html> | ||
... | ||
<script src="https://unpkg.com/@iapps/dhis2-program-rule-engine"></script> | ||
<script> | ||
// ... | ||
// Global variable | ||
d2Rule.execute(args*); | ||
// ... | ||
</script> | ||
</html> | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
374520
47