open-index/open-npm huggingface dataset:
npm package: @prmworks/mdbook
Description: CLI companion for MDBook — sync markdown files with your MDBook projects
Latest version: 0.1.0

# @prmworks/mdbook

CLI companion for [MDBook](https://mdbook.prmworks.com) — sync markdown files between your local filesystem and MDBook projects.

Write in your editor, push to MDBook. Edit in MDBook, pull to local. Keep everything in sync.

## Install

```bash
npm install -g @prmworks/mdbook
```

Requires Node.js >= 18.17.

## Quick start

```bash
# 1. Log in with your MDBook account
mdbook-cli login

# 2. Link the current directory to a project
mdbook-cli link

# 3. Push local markdown files to MDBook
mdbook-cli push

# 4. Or pull remote files down
mdbook-cli pull
```

## Commands

### `mdbook-cli login`

Authenticate with your MDBook account. You'll enter your email, receive a 6-digit verification code, and the CLI stores your session locally.

```bash
mdbook-cli login
```

### `mdbook-cli logout`

Clear stored credentials.

```bash
mdbook-cli logout
```

### `mdbook-cli whoami`

Show the currently logged-in user and verify the session is still valid.

```bash
mdbook-cli whoami
```

### `mdbook-cli link`

Link the current directory to an MDBook project. This creates a `.mdbook.json` file in your directory that tracks which remote project it maps to.

```bash
# Interactive — pick from your projects or create a new one
mdbook-cli link

# Direct — link by project ID
mdbook-cli link --project-id <id>
```

Re-running `link` replaces the existing link.

### `mdbook-cli push`

Upload local markdown files to the linked remote project. New files are created, modified files are updated.

```bash
mdbook-cli push

# Also delete remote files that don't exist locally
mdbook-cli push --delete

# Skip confirmation prompt
mdbook-cli push -y
```

### `mdbook-cli pull`

Download remote project files to the current directory. New and modified files are downloaded.

```bash
mdbook-cli pull

# Also delete local files that don't exist on remote
mdbook-cli pull --delete

# Skip confirmation prompt
mdbook-cli pull -y
```

### `mdbook-cli diff`

Show what's different between your local files and the remote project.

```bash
mdbook-cli diff

# Include inline content diffs for modified files
mdbook-cli diff --content
```

## How it works

The CLI compares your local `.md` files against the remote project using content hashes. On each `push` or `pull`, it shows a summary of what will change and asks for confirmation before proceeding.

**Local config files:**

| File | Location | Purpose |
|------|----------|---------|
| `~/.mdbook/config.json` | Home directory | User info |
| `.mdbook.json` | Project directory | Project link and sync state |

Add `.mdbook.json` to your `.gitignore` — it contains project-specific sync state and IDs.

## License

MIT
npm package: @prmworks/passbook
Description: Passbook CLI for linking repositories and syncing environment files.
Latest version: 0.1.7

# Passbook CLI

CLI for linking a local repository to a Passbook project and syncing `.env` files with Passbook environments.

## Install

```bash
npm install -g @prmworks/passbook
```

## Full Guide

For a complete getting-started walkthrough and interactive command reference, see [GUIDE.md](./GUIDE.md).

## Commands

```bash
passbook login
passbook whoami
passbook project link
passbook project create
passbook project unlink
passbook env link
passbook env create
passbook env list
passbook env unlink
passbook pull
passbook push
passbook -v
passbook --help
```

## Examples

```bash
passbook login
passbook project link
passbook env link
passbook pull
passbook push
```

## Smart Sync Behavior

- `pull` and `push` skip unchanged `.env` targets automatically.
- Interactive overwrite flows show a colorized line diff with line numbers before confirmation.
- `pull --all` and `push --all` confirm changed files one by one instead of treating the batch as a blind overwrite.
- `--force` skips prompts and diff previews, but unchanged targets are still skipped.

## Non-interactive examples

```bash
passbook project link --project-id proj_123 --non-interactive
passbook env link --env-id env_123 --file apps/auth-ui/.env.local --non-interactive
passbook pull env_123 --force --non-interactive
passbook push env_123 --force --non-interactive
```

## Notes

- `passbook login` opens `passbook.prmworks.com` in your browser and completes sign-in there.
- Browser login can use any web auth method currently available in Passbook, including Google and existing email/password accounts.
- `.passbook/config.json` is created in the linked repo root.
- Mappings use remote IDs and repo-relative file paths.
- `pull` and `push` can infer the target environment from the current working directory.
- `pull` and `push` skip unchanged env targets automatically.
- Interactive overwrite flows now show a colorized line diff before confirmation.
- `pull` creates missing local files.
- `push` fails if the local file is missing.
- `--force` skips overwrite prompts and diff previews, but unchanged targets still skip.
- In non-interactive mode, required flags must be provided and overwrite actions require `--force`.
- Output is colorized automatically in interactive terminals.
- Set `NO_COLOR` to disable colored output.

## Author

Created by [pradeep](https://github.com/pradeep-mishra)
npm package: @prng/core
Description: A Collection of PRNG's in JavaScript and TypeScript
Latest version: 1.0.2

# PRNG (Pseudo Random Number Generator)
## A Collection of PRNG's in JavaScript and TypeScript

> This library is a wrapper around all implementations of the PRNG's made by @bryc found in https://github.com/bryc/code/blob/master/jshash/PRNGs.md

### **Install**

**With NPM:**
`npm install prng@npm:@prng/core`

**With Yarn:**
`yarn add prng@npm:@prng/core`

**With PNPM:**
`pnpm install prng@npm:@prng/core`

### Create a Generator (In JavaScript)
```javascript
  const { PRNG } = require('prng'); // or import { PRNG } from 'prng' with es6 modules

  // First argument is the algorithm, i.e. - mulberry32, sfc32, jsf32, gjrand32, etc.
  const prng = PRNG.createGenerator('mulberry32', 1999);
  console.log(prng.next().value);
  console.log(prng.next().value);
```

### Create a Callback (In JavaScript)
```javascript
  const { PRNG } = require('prng'); // or import { PRNG } from 'prng' with es6 modules

  // First argument is the algorithm, i.e. - mulberry32, sfc32, jsf32, gjrand32, etc.
  const prng = PRNG.createCallback('mulberry32', 1999);
  console.log(prng());
  console.log(prng());
```