open-index/open-npm huggingface dataset:
npm package: @lean-format/cli
Description: Command line interface for the LEAN data format
Author: LEAN Format Team
Latest version: 1.0.0

# @lean/cli

Command-line interface for the LEAN (Lightweight Efficient Adaptive Notation) data format.

## Installation

```bash
npm install -g @lean-format/cli
```

## Usage

### Parse LEAN to JavaScript/JSON

```bash
# From file
lean parse data.lean

# From stdin
cat data.lean | lean parse

# Output to file
lean parse data.lean -o output.json
```

### Format JavaScript/JSON to LEAN

```bash
# From file
lean format data.json

# From stdin
echo '{"name":"Alice","age":30}' | lean format

# Output to file
lean format data.json -o output.lean
```

### Convert between formats

```bash
# LEAN to JSON
lean convert data.lean data.json

# JSON to LEAN
lean convert data.json data.lean
```

### Validate LEAN files

```bash
lean validate data.lean
```

### Watch mode (auto-convert on file changes)

```bash
lean watch data.lean
```

### Initialize a sample LEAN file

```bash
lean init sample
```

## Options

- `-o, --output <file>` - Output file path
- `-p, --pretty` - Pretty print JSON output
- `-s, --strict` - Enable strict mode validation
- `-q, --quiet` - Suppress non-error output

## Examples

### Parse and pipe to jq
```bash
cat config.lean | lean parse | jq '.database.host'
```

### Format with custom output
```bash
lean format api-response.json -o config.lean
```

### Watch and auto-convert
```bash
lean watch config.lean
# Every time config.lean changes, it converts to config.json
```

## Features

- ✅ Unix-style stdin/stdout piping
- ✅ Cross-platform file watching with chokidar
- ✅ Row syntax support for tabular data
- ✅ Comprehensive validation
- ✅ Pretty printing options

## Learn More

- [LEAN Format Specification](https://github.com/lean-format/lean-v1/blob/restruct/SPECIFICATION.md)
- [Report Issues](https://github.com/lean-format/lean-v1/issues)
- [Website](https://lean-format.github.io/lean-v1/)

## License

MIT © LEAN Format Team
npm package: @leanadmin/alpine-arrow-focus
Description: Focus elements using arrows in Alpine.js
Author: Samuel Štancl
Latest version: 0.1.1

# Alpine Arrow Focus

An Alpine package for building menu screens that can be navigated using arrows, by replicating the tab focus behavior.

## Usage

```html
<div x-data="arrow_focus()">
    <button x-spread="item" class="p-8 focus:bg-gray-500">First item</button>
    <button x-spread="item" class="p-8 focus:bg-gray-500">Second item</button>
    <button x-spread="item" class="p-8 focus:bg-gray-500">Third item</button>
</div>
```

Pressing the up & down keys will now switch between items. When the down key is pressed on the last item, the first item will get selected. When the up key is pressed on the first item, the last key will get selected.

## Installation

### CDN module

```html
<script>
import { arrow_focus } from 'https://unpkg.com/@leanadmin/alpine-arrow-focus@0.1.0';

window.arrow_focus = arrow_focus;
</script>
```

### Node.js

```
import { arrow_focus } from '@leanadmin/alpine-arrow-focus';

// If needed: window.arrow_focus = arrow_focus;
```
npm package: @leanadmin/wire-replace
Description: wire:replace directive for Livewire
Author: Samuel Štancl
Latest version: 0.1.3

# wire-replace

This package adds a new directive to Livewire: `wire:replace`. The directive is useful for solving DOM diffing issues.

For example, if you have the following template:

```html
<div>
    Showing
    <span class="font-medium">{{ $paginator->firstItem() }}</span>
    to
    <span class="font-medium">{{ $paginator->lastItem() }}</span>
    of
    <span class="font-medium">{{ $paginator->total() }}</span>
    results
</div>
```

The numbers will eventually merge into a single value if you update the component's data a few times.

To solve this, you'd wrap all of those free-floating strings in `<span>`s. And sure, it would work here.

But:
- it's ugly
- it won't work in situations where you display template that you don't have control over (translated templates, rich text added by users, ...)

A better solution is to have a directive that tells Livewire to **always** replace the element. Sort of like an opposite to `wire:ignore`.

## Usage

This package adds two extremely simple directives: `wire:replace` and `wire:replace.self`. Simply use them on elements that you want fully replaced.

To tell Livewire that the element's children should always be replaced:
```html
<div wire:replace>
    Showing
    ...
</div>
```

To tell Livewire that **the element itself plus its children** should always be replaced:
```html
<div wire:replace.self>
    Showing
    ...
</div>
```

## Installation

### npm dependency
Install the package:
```
npm install --dev @leanadmin/wire-replace
```

Register the directive in your `app.js` file:

```js
import wire_replace from '@leanadmin/wire-replace';

window.Livewire.hook(...wire_replace);
```

### CDN

Simply include the JS file in your layout (**after Livewire's scripts**) and the directive will automatically register itself.
```html
@livewireScripts

<script src="https://unpkg.com/@leanadmin/wire-replace@0.1.2/dist/wire_replace.js"></script>
```

## Performance

Livewire doesn't expose its internal morphdom class which would allow us to just tell morphdom to stop diffing the current tree if when it encounters an element with a `wire:replace` attribute.

So instead, we hook into Livewire's `element.updating` event and we replace the target element fully with the new element, before Livewire/morphdom can attempt more intelligent diffs.

This is likely less performant than hooking into morphdom's events, but in most cases it won't matter. The main use case of this package is small bits of templates where Livewire can't figure things out itself and `wire:key` doesn't help. And for that, it works completely smoothly.
npm package: @leancloud/platform-adapters-alipay
Description: Platform adapters for Alipay Miniapp
Author: Lee Yeh
Latest version: 1.4.2

# `@leancloud/platform-adapters-alipay`

## Usage

```
import AV from 'leancloud-storage';
import * as adapters from '@leancloud/platform-adapters-alipay';

AV.setAdapters(adapters);
```
npm package: @leancloud/platform-adapters-baidu
Description: Platform adapters for baidu mini-app
Author: Lee Yeh
Latest version: 1.4.3

# `@leancloud/platform-adapters-baidu`

## Usage

```
import AV from 'leancloud-storage';
import * as adapters from '@leancloud/platform-adapters-baidu';

AV.setAdapters(adapters);
```
npm package: @leancloud/platform-adapters-browser
Description: Platform adapters for browser
Author: Lee Yeh
Latest version: 1.5.3

# `@leancloud/adapters-browser`

## Usage

```
import AV from 'leancloud-storage';
import * as adapters from '@leancloud/adapters-browser';

AV.setAdapters(adapters);
```
npm package: @leancloud/platform-adapters-qqapp
Description: Platform adapters for QQ Miniapp
Author: Lee Yeh
Latest version: 1.4.4

# `@leancloud/platform-adapters-qqapp`

## Usage

```
import AV from 'leancloud-storage';
import * as adapters from '@leancloud/platform-adapters-qqapp';

AV.setAdapters(adapters);
```
npm package: @leancloud/platform-adapters-quickapp
Description: Platform adapters for quick app
Author: Lee Yeh
Latest version: 0.5.2

# `@leancloud/platform-adapters-quickapp`

## Usage

```
import AV from 'leancloud-storage';
import * as adapters from '@leancloud/platform-adapters-quickapp';

AV.setAdapters(adapters);
```
npm package: @leancloud/platform-adapters-react-native
Description: Platform adapters for React Native
Author: Lee Yeh
Latest version: 0.7.0

# `@leancloud/platform-adapters-react-native`

## Usage

```
import AV from 'leancloud-storage';
import * as adapters from '@leancloud/platform-adapters-react-native';

AV.setAdapters(adapters);
```
npm package: @leancloud/platform-adapters-toutiao
Description: Platform adapters for toutiao mini-app
Author: Lee Yeh
Latest version: 1.4.2

# `@leancloud/platform-adapters-toutiao`

## Usage

```
import AV from 'leancloud-storage';
import * as adapters from '@leancloud/platform-adapters-toutiao';

AV.setAdapters(adapters);
```
npm package: @leancloud/platform-adapters-weapp
Description: Platform adapters for Wechat Miniapp
Author: Lee Yeh
Latest version: 1.6.3

# `@leancloud/platform-adapters-weapp`

## Usage

```
import AV from 'leancloud-storage';
import * as adapters from '@leancloud/platform-adapters-weapp';

AV.setAdapters(adapters);
```
npm package: @leancloud/play
Description: LeanCloud Play SDK
Latest version: 1.0.2

# Play-SDK-JS

![build](https://img.shields.io/travis/leancloud/Play-SDK-JS)
![version](https://img.shields.io/github/package-json/v/leancloud/Play-SDK-JS)

## 安装

从 Release 下载 play.js 并拖拽至 Cocos Creator 中作为源码引用（无需做插件配置）

## 文档

- [API 文档](https://leancloud.github.io/Play-SDK-JS/doc/)

## 编译

在工程目录下，执行

```
rollup -c
```

dist/play.js 即为生成的库文件。

## 项目的目录结构

```
.
├── dist                      // 打包产出 (dist 分支)
│   ├── play.js                 // 最终打包的 js 文件，拖拽至 Cocos Creator 中使用
├── src                       // 源码
│   ├── index.js                // 打包入口
│   ├── Play.js                // 最重要的接口类，提供操作接口和注册事件
│   ├── Room.js                // 房间类
│   ├── Player.js                // 玩家类
│   └── ...
├── test                      // 测试用例
│   ├── Connect.test.js                 // 连接测试
│   ├── Lobby.test.js                 // 大厅测试
│   ├── CreateRoom.test.js                   // 创建房间测试
│   ├── JoinRoom.test.js                   // 加入房间测试
│   ├── ChangeProperties.test.js                   // 修改房间 / 玩家属性测试
│   ├── CustomEvent.test.js                   // 发送自定义消息测试
│   └── Master.test.js                   // 主机切换测试
```
npm package: @leancloud/runtime-adapters-browser
Description: Runtime adapters for browser
Author: Lee Yeh
Latest version: 1.0.1

# `@leancloud/adapters-browser`

## Usage

```
import AV from 'leancloud-storage';
import * as adapters from '@leancloud/adapters-browser';

AV.setAdapters(adapters);
```
npm package: @leancloud/runtime-adapters-quickapp
Description: Runtime adapters for quick app
Author: Lee Yeh
Latest version: 0.1.0

# `@leancloud/runtime-adapters-quickapp`

## Usage

```
import AV from 'leancloud-storage';
import * as adapters from '@leancloud/runtime-adapters-quickapp';

AV.setAdapters(adapters);
```
npm package: @leancloud/runtime-adapters-react-native
Description: Runtime adapters for React Native
Author: Lee Yeh
Latest version: 0.1.0

# `@leancloud/runtime-adapters-react-native`

## Usage

```
import AV from 'leancloud-storage';
import * as adapters from '@leancloud/runtime-adapters-react-native';

AV.setAdapters(adapters);
```
npm package: @leancloud/runtime-adapters-weapp
Description: Runtime adapters for Wechat Miniapp
Author: Lee Yeh
Latest version: 1.0.2

# `@leancloud/runtime-adapters-weapp`

## Usage

```
import AV from 'leancloud-storage';
import * as adapters from '@leancloud/runtime-adapters-weapp';

AV.setAdapters(adapters);
```