classification-manager
v1.0.10
Published
Library for working with document classifications, based on DoD Guidelines
Downloads
5
Readme
Steve the Dev's Classification Manager
JavaScript library for managing DoD Classifications. This library uses the Department of Defense Manual 5200.01 Volume 1 and Executive Order 12958 Section 1.5 to manage and aggregate classifications.
npm install classification-manager
Trello Board
https://trello.com/b/vlPEyG99
Test
Run the Ava test suite to verify that the classification manager passes the test suites.
npm run test
Serialized Classification Schema
{
"codewords": [ /* codewords as strings */ ],
/* Declassification information */
"declassification": {
/* the date the classification was created. Default: new Date() */
"created": "2018-01-01",
/* A minimum declassification date, or "null" if none is declared */
"date": null,
/* The list of declassification exemptions */
"exemptions": [ /* Declassification exemptions, such as "25X1" */ ]
},
/* Disseminiation controls */
"dissemination": {
/* Whether to apply DSEN to the classification. Default: false */
"dsen": false,
/* Whether to apply FOUO to the classification. Default: false */
"fouo": false,
/* Whether to apply IMCON to the classification. Default: false */
"imcon": false,
/* Whether to apply NOFORN to the classification. Default: false */
"noforn": false,
/* Whether to apply ORCON to the classification. Default: false */
"orcon": false,
/* Whether to apply PROPIN to the classification. Default: false */
"propin": false,
/* Whether to apply RELIDO to the classification. Default: false */
"relido": false,
/* Whether to apply RSEN to the classification. Default: false */
"rsen": false,
/* The list of EYES ONLY nations and organizations */
"eyes": [ /* trigraphs and tetragraphs */ ],
/* The list of REL TO nations and organizations */
"rel": [ /* trigraphs and tetragraphs */ ]
},
/* Foreign government intelligence */
"fgi": [
/* The classification level (number) and owner (trigraph or tetragraph) */
{ "level": 1, "owner": "CAN" }
],
/* The basic classification level. Default: 0 (UNCLASSIFIED) */
"level": 0,
/* Non-Intelligence Community Markings */
"nonic": [ /* Array of strings */ ],
/* The reasons for classification, according to the most recent EO guidance */
"reasons": [ /* Array of strings */ ],
/* The classification sources and authors */
"sources": [
/* Source name (string) and authors (string[]) */
{ "name": "Source", "authors": [ "Person A", "Person B" ] }
]
}