# @sryden/unit

> This is a Node.js module for reading and parsing basic SRYDEN Unit files.

Latest version **1.0.2** (published 2023-12-03) · ISC license · 0 weekly downloads

## Install

```sh
npm install @sryden/unit
pnpm add @sryden/unit
yarn add @sryden/unit
bun add @sryden/unit
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2023-12-03 |
| First published | 2023-12-03 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | SRYDEN, Inc |
| Maintainers | halex |

## Links

- npm: https://www.npmjs.com/package/@sryden/unit
- npm.io page: https://npm.io/package/@sryden/unit

## Recent versions

- 1.0.2 (latest) — 2023-12-03
- 1.0.1 — 2023-12-03
- 1.0.0 — 2023-12-03

## README

# SRYDEN Unit

This is a Node.js module for reading and parsing basic SRYDEN Unit files.

## Installation

```bash
npm install @sryden/unit
```

## Example

index.js:
```js
const unit = require('@sryden/unit');

// Example settings file
const settings = unit.file('./settings.unit');

if (settings) {
    console.log(settings.myCategory.setting1);
    console.log(settings.myOtherCategory.setting2);
} else {
    console.error('Failed to load settings from file.');
}
```

settings.unit:
```
// Note: These are categories which contain settings and arrays
// Unit version 1.0.0

myCategory {
    "setting1": "hello world",
    "someArray": [
        "1",
        "2"
    ]
}

MyOtherCategory {
    "setting2": "hello world"
}
```

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