open-index/open-npm huggingface dataset:
npm package: @hypertheory-labs/sanitize
Description: State sanitization library for developer tools — redact, mask, and transform sensitive fields before they reach any observer.
Latest version: 0.0.1

# @hypertheory-labs/sanitize

State sanitization library for developer tools — redact, mask, and transform sensitive fields
before they reach any observer: AI assistants, logging pipelines, clipboard exports, or event
sourcing streams.

Standalone. Zero dependencies on Angular, NgRx, or any framework.

**[Full documentation →](https://stellar.hypertheory-labs.dev/explainers/sanitize-design/)**

---

## Installation

```bash
npm install @hypertheory-labs/sanitize
```

---

## Quick start

```ts
import { sanitized } from '@hypertheory-labs/sanitize';

const safeState = sanitized(userState, {
  password:   'masked',       // → "***"
  apiKey:     'hashed',       // → "[~3f9a12b4]" (stable, correlation-preserving)
  creditCard: 'creditCard',   // → last 4 digits
  ssn:        'omitted',      // key removed entirely
  notes:      truncate(80),   // first 80 chars + "…"
});
```

---

## Three tiers of rules

### Tier 1 — Named rules (covers most cases)

String literals with full autocomplete. No imports needed beyond `sanitized`.

| Rule | Output | Use when |
|---|---|---|
| `'omitted'` | *(key removed)* | Field shouldn't appear at all |
| `'redacted'` | `'[redacted]'` | Value hidden, key visible |
| `'masked'` | `'***…'` | Length-approximate masking |
| `'hashed'` | `'[~3f9a12b4]'` | Correlation without exposure |
| `'lastFour'` | last 4 chars | |
| `'email'` | `'jo***@example.com'` | |
| `'creditCard'` `'debitCard'` `'phoneNumber'` | last 4 (aliases) | |
| `'password'` `'apiKey'` `'token'` `'secret'` `'ssn'` | semantic aliases | |

### Tier 2 — Parameterized operators

```ts
import { sanitized, keepFirst, keepLast, truncate, replace } from '@hypertheory-labs/sanitize';

sanitized(state, {
  internalId: keepFirst(6),
  notes:      truncate(80),
})
```

### Arrays

```ts
import { sanitized, arrayOf } from '@hypertheory-labs/sanitize';

sanitized(state, {
  customers: arrayOf({ email: 'omitted', creditCard: 'creditCard' }),
})
```

---

## Typed helper

```ts
import { sanitizeConfig } from '@hypertheory-labs/sanitize';

// Provides SanitizationConfig<T> typing at the call site — identity at runtime
const myConfig = sanitizeConfig<UserState>({
  password: 'masked',
  apiKey: 'hashed',
});
```

---

## License

MIT © Jeffry Gonzalez
npm package: @hypertool/cli
Description: The Hypertool CLI allows you to manage your Hypertool apps from the command-line.
Latest version: 0.2.1

# Hypertool CLI

The Hypertool CLI allows you to manage your Hypertool apps from the command-line.

## License

The open-source components of Hypertool are available under the [MIT license](https://opensource.org/licenses/MIT).
npm package: @hypertorrent/debug
Description: Usage : ```javascript import debug from '@hypertorrent/debug'; import { name } from '../package.json';
Author: Tony DUBURQUE
Latest version: 1.0.2
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# Debug

Usage :
```javascript
import debug from '@hypertorrent/debug';
import { name } from '../package.json';

export default class Test {
  constructor(options = {}) {
    super();

    this.debug = debug(name, this);
    this.debug('new');
  }
}
```
npm package: @hypertorrent/manager
Description: ```bash npm i @hypertorrent/manager ```
Author: Tony DUBURQUE
Latest version: 1.1.6
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# Manager

```bash
npm i @hypertorrent/manager
```

Usage :
```javascript
import TorrentsManager from '@hypertorrent/manager';

const torrentsManager = new TorrentsManager();
torrentsManager
  .add('magnet:?xt=urn:btih:7c312dd630e216b10e87c82a9624e38eac4bac4b&dn=archlinux-2019.11.01-x86_64.iso&tr=udp://tracker.archlinux.org:6969&tr=http://tracker.archlinux.org:6969/announce', { dht: true });
```
npm package: @hypertorrent/torrent
Description: ```bash npm i @hypertorrent/torrent ```
Author: Tony DUBURQUE
Latest version: 1.0.5
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# Torrent

```bash
npm i @hypertorrent/torrent
```

Usage :
```javascript
import Torrent from '@hypertorrent/torrent';
const torrent = new Torrent(torrentId, { autostart: false });
torrent.start();
```