npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

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

Build Status Build status Codacy Badge Known Vulnerabilities Coverage Status

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" ] }
  ]
}