Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@iapps/dhis2-program-rule-engine

Package Overview
Dependencies
Maintainers
15
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@iapps/dhis2-program-rule-engine - npm Package Compare versions

Comparing version 1.0.0-alpha.8 to 1.0.0-alpha.9

src/index.d.ts

20

package.json
{
"name": "@iapps/dhis2-program-rule-engine",
"version": "1.0.0-alpha.8",
"repository": {
"type": "git",
"url": "git+https://github.com/hisptz/program-rule-engine.git"
},
"author": "UDSM DHIS2",
"license": "LGPL-3.0",
"bugs": {
"url": "https://github.com/hisptz/program-rule-engine/issues"
},
"homepage": "https://github.com/hisptz/program-rule-engine#readme",
"version": "1.0.0-alpha.9",
"type": "commonjs",
"main": "./src/index.js",
"typings": "./src/index.d.ts",
"dependencies": {},
"peerDependencies": {
"d2-utilizr": "^0.2.16"
"lodash": "^4.17.21",
"moment": "^2.29.4",
"tslib": "^2.3.0"
}
}

47

README.md

@@ -1,46 +0,11 @@

# DHIS2 Program Rule Engine
# program-rule-engine
DHIS2 based javascript library for evaluating programs rules for DHIS2 tracker or event implementations
This library was generated with [Nx](https://nx.dev).
# Usage
## Building
- ES2015 module import:
Run `nx build program-rule-engine` to build the library.
```javascript
import * as d2Rule from '@iapps/dhis2-program-rule-engine';
// ...
d2Rule.execute(args*);
```
## Running unit tests
- 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>
```
Run `nx test program-rule-engine` to execute the unit tests via [Jest](https://jestjs.io).
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc