@greenarmor/ges-compliance-engine 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +45 -0
- package/package.json +2 -2
package/README.md
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# @greenarmor/ges-compliance-engine
|
|
2
|
+
|
|
3
|
+
GDPR compliance controls, evaluation, and compliance checking for the [Green Engineering Standard Framework (GESF)](https://github.com/greenarmor/gesf).
|
|
4
|
+
|
|
5
|
+
Evaluates GDPR controls based on Articles 5, 25, 30, 32, 33, and 34 — producing structured control objects with pass/fail/warning status.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install @greenarmor/ges-compliance-engine
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Exports
|
|
14
|
+
|
|
15
|
+
| Function | Description |
|
|
16
|
+
|----------|-------------|
|
|
17
|
+
| `createGDPRControls()` | Returns all GDPR controls across all articles |
|
|
18
|
+
| `createArticle5Controls()` | Controls for GDPR Article 5 — Principles relating to processing |
|
|
19
|
+
| `createArticle25Controls()` | Controls for Article 25 — Data protection by design and by default |
|
|
20
|
+
| `createArticle30Controls()` | Controls for Article 30 — Records of processing activities |
|
|
21
|
+
| `createArticle32Controls()` | Controls for Article 32 — Security of processing |
|
|
22
|
+
| `createArticle33Controls()` | Controls for Article 33 — Notification of data breach to supervisory authority |
|
|
23
|
+
| `createArticle34Controls()` | Controls for Article 34 — Communication of data breach to data subject |
|
|
24
|
+
| `evaluateControl(control)` | Evaluates a single control and returns its status |
|
|
25
|
+
|
|
26
|
+
## Usage
|
|
27
|
+
|
|
28
|
+
```typescript
|
|
29
|
+
import { createGDPRControls, evaluateControl, createArticle32Controls } from '@greenarmor/ges-compliance-engine';
|
|
30
|
+
|
|
31
|
+
const allControls = createGDPRControls();
|
|
32
|
+
const art32 = createArticle32Controls();
|
|
33
|
+
|
|
34
|
+
const evaluated = allControls.map(c => evaluateControl(c));
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## Related Packages
|
|
38
|
+
|
|
39
|
+
- [`@greenarmor/ges-core`](https://www.npmjs.com/package/@greenarmor/ges-core) — Types and constants
|
|
40
|
+
- [`@greenarmor/ges-scoring-engine`](https://www.npmjs.com/package/@greenarmor/ges-scoring-engine) — Scoring evaluated controls
|
|
41
|
+
- [`@greenarmor/ges-policy-engine`](https://www.npmjs.com/package/@greenarmor/ges-policy-engine) — Policy pack management
|
|
42
|
+
|
|
43
|
+
## License
|
|
44
|
+
|
|
45
|
+
MIT
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@greenarmor/ges-compliance-engine",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "GESF Compliance Engine - GDPR controls, evaluation, and compliance checking",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@greenarmor/ges-core": "0.3.
|
|
15
|
+
"@greenarmor/ges-core": "0.3.2"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
18
|
"typescript": "^6.0.0",
|