open-index/open-npm huggingface dataset:
npm package: @rupendragonnade/shared-lib
Description: This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 16.2.0.
Latest version: 1.0.1

# SharedLib

This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 16.2.0.

## Code scaffolding

Run `ng generate component component-name --project shared-lib` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project shared-lib`.
> Note: Don't forget to add `--project shared-lib` or else it will be added to the default project in your `angular.json` file. 

## Build

Run `ng build shared-lib` to build the project. The build artifacts will be stored in the `dist/` directory.

## Publishing

After building your library with `ng build shared-lib`, go to the dist folder `cd dist/shared-lib` and run `npm publish`.

## Running unit tests

Run `ng test shared-lib` to execute the unit tests via [Karma](https://karma-runner.github.io).

## Further help

To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
npm package: @rupertsworld/daemon
Description: Install, uninstall, and check background daemons on macOS and Linux
Latest version: 0.1.1

# @rupertsworld/daemon

Install, uninstall, and check background daemons on macOS (launchd) and Linux (systemd).

## Supported platforms

- **macOS** — LaunchAgents via `launchctl`
- **Linux** — systemd user units via `systemctl --user`

Other platforms throw a clear error.

## Install

```bash
npm install @rupertsworld/daemon
```

## Usage

```typescript
import { Daemon } from "@rupertsworld/daemon";

const daemon = new Daemon({
  name: "com.example.myapp",
  description: "My background service",
  command: "/usr/local/bin/myapp",
  args: ["--serve"],
  env: { NODE_ENV: "production" }, // optional
});

// Register and start the daemon
await daemon.install();

// Check if it's running
const { installed, running } = await daemon.status();

// Stop and remove the daemon
await daemon.uninstall();
```

## API

### `new Daemon(options)`

| Option        | Type                       | Required | Description                          |
| ------------- | -------------------------- | -------- | ------------------------------------ |
| `name`        | `string`                   | yes      | Service identifier                   |
| `description` | `string`                   | yes      | Human-readable description           |
| `command`     | `string`                   | yes      | Absolute path to the executable      |
| `args`        | `string[]`                 | yes      | Arguments passed to the command      |
| `env`         | `Record<string, string>`   | no       | Environment variables for the daemon |

### `daemon.install(): Promise<void>`

Writes the platform service file and registers it. Idempotent — if the service is already installed, it unloads/disables first, then re-registers.

### `daemon.uninstall(): Promise<void>`

Stops the service and removes the service file. Safe to call when the service is not installed.

### `daemon.status(): Promise<{ installed: boolean; running: boolean }>`

Returns whether the service file exists and whether the daemon process is currently running.