open-index/open-npm huggingface dataset:
npm package: @hi-ashleyj/global-mouse-events
Description: Global mouse events listener for Node.js (Windows only)
Author: xanderfrangos
Latest version: 1.0.0

# global-mouse-events

Global mouse events listener for Node.js (Windows only). Based off of [xanderfrangos/global-mouse-events](https://github.com/xanderfrangos/global-mouse-events).
Adds the recommendation from [](https://github.com/xanderfrangos/global-mouse-events/issues/4) for mouse side buttons.

## Installation

```cmd
npm i global-mouse-events
```

## Usage
Import the module and register for the mouse events you'd like to listen to.

### Available event listeners

**`mouseup`** / **`mousedown`** — *Fires when a mouse button is pressed / released.*\
Returns:
- **x:** The X position of the mouse, relative to the top left of the primary display.
- **y:** The Y position of the mouse, relative to the top left of the primary display.
- **button:** Which button was pressed. 1 is left-click. 2 is right-click. 3 is middle-click. 4 is side button back. 5 is side button forward.

**`mousemove`** — *Fires when the mouse cursor is moved.*\
Returns:
- **x:** The X position of the mouse, relative to the top left of the primary display.
- **y:** The Y position of the mouse, relative to the top left of the primary display.

**`mousewheel`** — *Fires when the mouse wheel is scrolled. Some trackpads may not fire this event unless "Scroll inactive windows when I hover over them" is disabled in the Windows settings.*\
Returns:
- **x:** The X position of the mouse, relative to the top left of the primary display.
- **y:** The Y position of the mouse, relative to the top left of the primary display.
- **delta:** How much the mouse wheel was scrolled. Positive numbers are considered "up" and negative numbers are "down".
- **axis:** Whether the scroll was vertical or horizontal. 0 is vertical. 1 is horizontal.

### Example

```js
const mouseEvents = require("global-mouse-events");

mouseEvents.on("mouseup", event => {
  console.log(event); // { x: 2962, y: 483, button: 1 }
});

mouseEvents.on("mousedown", event => {
  console.log(event); // { x: 2962, y: 483, button: 1 }
});

mouseEvents.on("mousemove", event => {
  console.log(event); // { x: 2962, y: 482 }
});

mouseEvents.on("mousewheel", event => {
  console.log(event); // { x: 2962, y: 483, delta: -1, axis: 0 }
});
```

### Available functions

- **`pauseMouseEvents`** — *Pauses all mouse events.*
- **`resumeMouseEvents`** — *Resumes all mouse events.*
- **`getPaused`** — *Returns the paused state as a boolean.*
npm package: @hi-ashleyj/passagedown-vite
Description: This is a standard I've made that I also use when creating Visual Novel games (basically, twine), except I'm a developer so I find the visual canvas annoying, and I want 100% of my styles.
Latest version: 0.1.1

# PassageDown

This is a standard I've made that I also use when creating Visual Novel games (basically, twine), except I'm a developer so I find the visual canvas annoying, and I want 100% of my styles.  
  
Instead of creating yet another language, I've instead created this - PassageDown (.pd) - and written it as an inline build tool for vite, so you can directly import that data.  
  
PassageDown is a limited subset of markdown, with extra tooling for a CYOA type game. It only describes text, not actions. I'll be making something separate for that.  
  
## Features
### Supported Mardown Features
- \#\[###\] headings (block)
- \*\*italic\*\*
- \_\_bold\_\_
- \~\~strikethrough\~\~
- End of lines are actually line ends - no doublespacing.
- Blank lines start new "Block"s

### Added Components
- \$\$pronouns
  - \$\$e => she | he | they
  - \$\$m => her | him | them
  - \$\$r => her | his | their
  - \$\$s => hers | his | theirs
  - \$\$a$character => should use pronouns for character, not PC
- \^\^\[character\]
  - should insert character name or PC
- \-\-variable
  - will insert the value of the variable
- <>passage
  - will insert the contents of another passagedown file

### Added Blocks
- !^^character ... !^^!
  - Used to show character is speaking.
- !%%variable compare \[value\] ... !%%!
  - if block
  - should be rendered inline
  - variable is key of variable
  - compare is method used:
    - is, not => strictly equal
    - less, more => number only comparision
    - exists, missing => null check
  - value is required if not a null check
  - many conditions can be chained with || for OR only.
- !<>passage
  - inserts content of another passagedown file

### Note about macros
- You'll need to add a `routes.alias` to your config with value `"passages": <passage root>`.
- Macros will be imported from this location.

## Exports
npm package: @hi-ashleyj/sveltekit-adapter-node-fullbundle
Description: Adapter for SvelteKit apps that generates a standalone Node server
Latest version: 0.1.0

# @hi-ashleyj/sveltekit-adapter-node-fullbundle

[Adapter](https://svelte.dev/docs/kit/adapters) for SvelteKit apps that generates a standalone Node server.  
This version modifies the rollup process to include all dependencies.

## Docs

[Docs](https://svelte.dev/docs/kit/adapter-node)

## Changelog

[The Changelog for this package is available on GitHub](https://github.com/sveltejs/kit/blob/main/packages/adapter-node/CHANGELOG.md).

## License

[MIT](LICENSE)
npm package: @hi-brylle/rpi-wifi-connection
Description: Library for connecting a Raspberry Pi to Wi-Fi (internally uses wpa_cli)
Latest version: 2.5.4

# rpi-wifi-connection

A wrapper library that uses [wpa_cli](https://linux.die.net/man/8/wpa_cli) for connecting a Raspberry Pi to Wi-Fi.

## Installation

```sh
$ npm i @hi-brylle/rpi-wifi-connection
```

## Initialization

```ts
import RpiWiFiConnection from '@hi-brylle/rpi-wifi-connection';
let wifi = new RpiWiFiConnection() // "wlan0" default network interface
```

## Types

### `WifiNetwork`
Type returned when scanning for available networks.
```ts
interface WiFiNetwork {
    bssid: string,
    frequency: number,
    signal_level: number,
    ssid: string
}
```

### `ConfiguredNetwork`
Type returned when querying for networks previously connected to.
```ts
interface ConfiguredNetwork {
    id: number,
    ssid: string
}
```

## Methods

### `get_status()`
Returns a singleton list containing the sole SSID if device is connected or empty list if not connected.

### `scan_networks()`
Returns a list of `WifiNetwork` or empty list if nothing is detected.

### `get_configured_networks()`
Returns a list of `ConfiguredNetwork` or empty list if the RPi has never
connected to a Wi-Fi network.

### `connect_to_network(ssid: string, password: string)`
Attempts connection with `ssid` and `password` input. Doesn't return anything. Use `get_status()` to check whether connection attempt succeeded.

### `forget_network(ssid_to_forget: string)`
Remove previously configured network from the RPi to prevent it from auto-connecting to that network in the future.

### `auto_connect_to_network(ssid: string)`
Auto-connect to a previously configured network. If `ssid` input doesn't
belong to the list returned by `get_configured_networks()`, nothing happens. 
Use `get_status()` to check whether connection attempt succeeded.

### `disconnect_from_wifi()`
Disconnect from Wi-Fi.

### `reconnect_to_wifi()`
Reconnect to Wi-Fi. Effects may not be immediate
so call `get_status()` to check connection status or
call `scan_networks()` to query all available networks
after some timeout.