# administratum

> All the tools you need to perform your duty to the empire of man

Latest version **0.11.0** (published 2026-05-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install administratum
pnpm add administratum
yarn add administratum
bun add administratum
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.11.0 |
| Published | 2026-05-05 |
| First published | 2023-03-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=24 |
| Dependencies | 4 |
| Unpacked size | 30.4 KB |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Andreas Arvidsson |
| Maintainers | andreas_arvidsson |

## Links

- npm: https://www.npmjs.com/package/administratum
- Repository: https://github.com/AndreasArvidsson/administratum
- Issues: https://github.com/AndreasArvidsson/administratum/issues
- npm.io page: https://npm.io/package/administratum

## Dependencies (4)

- [tar](https://npm.io/package/tar.md) ^7.5.13
- [uuid](https://npm.io/package/uuid.md) ^14.0.0
- [extract-zip](https://npm.io/package/extract-zip.md) ^2.0.1
- [signal-exit](https://npm.io/package/signal-exit.md) ^4.1.0

## Recent versions

- 0.11.0 (latest) — 2026-05-05
- 0.10.0 — 2023-11-15
- 0.9.0 — 2023-04-09
- 0.8.0 — 2023-03-28
- 0.7.0 — 2023-03-27
- 0.6.0 — 2023-03-27
- 0.5.0 — 2023-03-27
- 0.4.0 — 2023-03-27
- 0.3.1 — 2023-03-27
- 0.2.0 — 2023-03-27
- 0.1.2 — 2023-03-25
- 0.1.1 — 2023-03-25
- 0.1.0 — 2023-03-24

## README

# Administratum

All the tools you need to perform your duty to the empire of man

## Examples

These are just a few examples of some of the features Administratum offers

### Run cli commands

```js
$("ls -l");
```

```js
$("echo", ["hello world"]);
```

### Typescript implementation of common bash commands

```js
cp("file.txt", "dir/copy.txt");
```

```js
mv("file.txt", "newName.txt");
```

```js
mkdir("newFolder");
```

```js
find("/dir", /name/);
```

```js
grep(/WARN/, "file.log");
```

### File utilities

```js
readFile("file.txt");
```

```js
touch("file.txt");
```

```js
Path.temp().join("dir", "file.txt").exists();
```

### Download files

```js
await fetch("http://domain.com/setup.zip");
```

### Extract archives

```js
await extract("archive.zip");
```

```js
await extract("archive.tar");
```

### Windows registery utilities

```js
regQueryKey("HKEY_CURRENT_USER\\Software\\Microsoft");
```

```js
regAddValue("HKEY_CURRENT_USER\\Software\\MyApp", "enabled", "REG_DWORD", 1);
```

### Automation pipeline

```js
const createFolders = {
    name: "Create folders",
    run: ({ task }) => {
        task("Make applications dir", () => {
            mkdir("applications");
        });
    },
};

const extractArchives = {
    name: "Extract archives",
    run: ({ task }) => {
        task("Extract DB", async () => {
            await extract("mongodb.zip", "applications");
        });

        task("Extract WF", async () => {
            await extract("wildly.zip", "applications");
        });
    },
};

await runFlows({
    flows: [createFolders, extractArchives],
    propertiesFile: "setup.properties",
});
```

![Adeptus administratum adept](./images/Imperio_adeptus_administratum_adepto.webp)

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