# occam-model

> Parts of Occam's model.

Latest version **1.0.620** (published 2026-10-03) · MIT, Anti-996 license · 0 weekly downloads

## Install

```sh
npm install occam-model
pnpm add occam-model
yarn add occam-model
bun add occam-model
```

## Health

**Score 55/100 (C)** — status: active.

Positive: no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads; no types; no esm support.

## Facts

| | |
|---|---|
| Version | 1.0.620 |
| Published | 2026-10-03 |
| First published | 2026-02-04 |
| Weekly downloads | 0 |
| License | MIT, Anti-996 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 249.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | James Smith |
| Maintainers | djalbat |

## Links

- npm: https://www.npmjs.com/package/occam-model
- Repository: https://github.com/djalbat/occam-model
- Issues: https://github.com/djalbat/occam-model/issues
- npm.io page: https://npm.io/package/occam-model

## Dependencies (3)

- [necessary](https://npm.io/package/necessary.md) ^17.7.2
- [occam-query](https://npm.io/package/occam-query.md) ^4.1.241
- [occam-grammars](https://npm.io/package/occam-grammars.md) ^1.3.741

## Recent versions

- 1.0.620 (latest) — 2026-10-03
- 1.0.619 — 2026-10-02
- 1.0.618 — 2026-10-02
- 1.0.617 — 2026-10-02
- 1.0.616 — 2026-09-29
- 1.0.615 — 2026-09-29
- 1.0.614 — 2026-09-28
- 1.0.613 — 2026-09-27
- 1.0.612 — 2026-09-27
- 1.0.611 — 2026-09-27
- 1.0.610 — 2026-09-27
- 1.0.609 — 2026-09-27
- 1.0.608 — 2026-09-26
- 1.0.607 — 2026-09-24
- 1.0.606 — 2026-09-24
- … 121 more at https://npm.io/package/occam-model/versions

## README

# Occam Model

Parts of [Occam](https://github.com/djalbat/occam)'s model.

### Contents

- [Introduction](#introduction)
- [Installation](#installation)
- [Usage](#usage)
- [Building](#building)
- [Contact](#contact)

## Introduction

Parts of Occam's model, such as files, projects, versions and so on.

## Installation

With [npm](https://www.npmjs.com/):

    npm install occam-model

You can also clone the repository with [Git](https://git-scm.com/)...

    git clone https://github.com/djalbat/occam-model.git

...and then install the dependencies with npm from within the project's root directory:

    npm install

## Usage

The exported classes are:

* `File`
* `Files`
* `Version`
* `Entries`
* `Project`
* `Release`
* `Projects`
* `Releases`
* `Dependency`
* `Dependencies`
* `ShortenedVersion`

There are also some utilities:

* `contentUtilities`
* `filePathUtilities`
* `metaJSONUtilities`

The classes have factory methods, see the source for details. Typical usage is:

```
const { File }} = require('occam-model');

const json = ... ,
      file = file.fromJSON(json);

...
```

See the source for further information on the utilities.

In short, this package has little of use and only a little more of interest. 

## Building

Automation is done with [npm scripts](https://docs.npmjs.com/misc/scripts), have a look at the `package.json` file. The pertinent commands are:

    npm run build-debug
    npm run watch-debug

## Contact

* james.smith@djalbat.com

---
_Source: https://npm.io/package/occam-model · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
