open-index/open-npm huggingface dataset:
npm package: @snts.abode/loc.js
Description: lines-of-code
Author: Sihle Masebuku
Latest version: 0.1.1

<h1 align="center">loc.js 📝</h1>
<p>
  <a href="#" target="_blank">
    <img alt="License: MIT" src="https://img.shields.io/badge/License-MIT-blue.svg" />
  </a>
  <a href="https://badge.fury.io/js/@snts.abode%2Floc.js">
    <img src="https://badge.fury.io/js/@snts.abode%2Floc.js.svg" alt="npm version" />
  </a>
  <img alt="Maintenance" src="https://img.shields.io/badge/Maintained-yes-blue.svg" />
  <a href="#" target="_blank">
    <img alt="Documentation" src="https://img.shields.io/badge/documentation-yes-brightgreen" />
  </a>
  <a href="https://github.com/sntsabode/loc.js/actions/workflows/test.yaml" target="_blank">
    <img alt="loc.js-test" src="https://github.com/sntsabode/loc.js/actions/workflows/test.yaml/badge.svg" />
  </a>
</p>

***loc.js*** is a simple, no dependencies command line tool that counts the number of lines in a project.

<img src="assets/sc.gif" />

## Prerequisites

***Use other verions at own risk***

* node >= 12.x.x

## Installation

### Install from ***npm***

```sh
npm i -g @snts.abode/loc.js
```

Might have to use sudo on ***unix systems***

```sh
sudo npm i -g @snts.abode/loc.js
```

### Install from source

```sh
cd loc.js

yarn i
```

If the above command doesn't work due to admin privileges ***(unix system)***, try

```sh
cd loc.js

yarn i:sudo
```

## Usage

```sh
cd my-project

loc.js <options>
```

### Options:

* `-y` or `--yes` - (`boolean`): Don't ask any questions.

* `-p` or `--paths` - (`string[]`): Enter paths ***loc*** should work in, relative to the cwd.

* `-l` or `--log` - (`y`|`n`): Whether or not the process should log.

## Author

👤 **Sihle Masebuku <snts.abode@gmail.com>**

## Show your support

Give a ⭐️ if this project helped you!
npm package: @sntsoft/alert
Description: ## 安装
Author: Ren Chunhui
Latest version: 1.0.2

# UTILS

## 安装

npm 安装

```bash
$ npm install @chunhui/alert
```

yarn 安装

```bash
$ yarn add @chunhui/alert
```

## 使用

``` typescript
private alert: AlertService

this.alert.create({
  title: 'Title',
  message: 'This is message'
  buttons: [
    {
      text: 'Submit'
      handler: () => console.log('on submit')
    },
    {
      text: 'Cancel'
    }
  ]
})
```
npm package: @sntxx/material-ui-color-picker
Description: <ColorInput> component for material-ui
Author: Loic Mahieu
Latest version: 3.5.3

# `<ColorPicker>` for material-ui

![`<ColorPicker>` example](./doc/screenshot.png)

ColorPicker based on [`<TextField />`](http://www.material-ui.com/#/components/text-field) and `<ChromePicker />` from [`react-color`](https://github.com/casesandberg/react-color/) and its [redux-form](https://redux-form.com) field component.

## Demo

[https://material-ui-color-picker.now.sh/](https://material-ui-color-picker.now.sh/)

## Installation

For material-ui (v1):

```sh
npm install --save material-ui-color-picker
```

## Usage

```js
import React from 'react'
import ColorPicker from 'material-ui-color-picker'

<ColorPicker
  name='color'
  defaultValue='#000'
  // value={this.state.color} - for controlled component
  onChange={color => console.log(color)}

/>
```
[Redux-form](https://redux-form.com) field
```js
import React, { Component } from 'react';
import { reduxForm, Field } from 'redux-form';
import { ColorPickerField } from 'material-ui-color-picker';

...
<Field
  name="color"
  component={ColorPickerField}
/>
...

```

There is not so much properties at this time. The was very quickly designed for my needs. Feel free to submit a PR with new features ;)

## License

This library is licensed under the [MIT Licence](LICENSE), and sponsored by [iGLOO](https://igloo.be).
npm package: @sntxx/socket-apollo-link
Description: Absinthe Socket Apollo Link
Author: Mauro Titimoli
Latest version: 0.2.6

# @sntxx/socket-apollo-link > Absinthe Socket Apollo Link

<!-- START doctoc -->
<!-- END doctoc -->

## Installation ### Using [npm](https://docs.npmjs.com/cli/npm) ``` $ npm
install --save @sntxx/socket-apollo-link ``` ### Using [yarn](https://yarnpkg.com) ``` $ yarn
add @sntxx/socket-apollo-link ``` ## Examples 1. Create AbsintheSocketLink
(`absinthe-socket-link.js`) ```javascript // @flow import * as AbsintheSocket
from "@sntxx/socket"; import {createAbsintheSocketLink} from
"@sntxx/socket-apollo-link"; import {Socket as PhoenixSocket} from "phoenix";
export default createAbsintheSocketLink(AbsintheSocket.create( new
PhoenixSocket("ws://localhost:4000/socket") )); ``` 2. Send all the operations
using AbsintheSocketLink ```javascript // @flow import ApolloClient from
"apollo-client"; import {InMemoryCache} from "apollo-cache-inmemory"; // see
example 1 import absintheSocketLink from "./absinthe-socket-link"; const client
= new ApolloClient({ link: absintheSocketLink, cache: new InMemoryCache() });
``` 3. Subscribe using AbsintheSocketLink and send queries and mutations using
HttpLink ```javascript // @flow import ApolloClient from "apollo-client"; import
{createHttpLink} from "apollo-link-http"; import {hasSubscription} from
"@jumpn/utils-graphql"; import {InMemoryCache} from "apollo-cache-inmemory";
import {split} from "apollo-link"; // see example 1 import absintheSocketLink
from "./absinthe-socket-link"; const link = split( operation =>
hasSubscription(operation.query), absintheSocketLink, createHttpLink({uri:
"/graphql"}) ); const client = new ApolloClient({ link, cache: new
InMemoryCache() }); ``` ## API ## References - [Absinthe Phoenix
Socket](https://github.com/absinthe-graphql/absinthe-socket/tree/master/packages/socket)
- **Apollo Link** - [Apollo
Client](http://apollo-link-docs.netlify.com/docs/link/#apollo-client) -
[Terminating
Links](http://apollo-link-docs.netlify.com/docs/link/overview.html#terminating)
- [Directional
Composition](http://apollo-link-docs.netlify.com/docs/link/composition.html#directional)
- [Http Link](http://apollo-link-docs.netlify.com/docs/link/links/http.html) ##
License [MIT](LICENSE.txt) :copyright: Jumpn Limited.
npm package: @snubisks/opencode-axonhub-tracing
Description: OpenCode plugin for generic trace header injection (default AxonHub headers)
Latest version: 0.1.4

# @snubisks/opencode-axonhub-tracing

OpenCode 插件：为每次 LLM 请求注入 trace headers。

默认 header key 对齐 AxonHub：
- `AH-Thread-Id` ← OpenCode `sessionID`
- `AH-Trace-Id` ← OpenCode `message.id`

同时保持通用能力：header key 可通过环境变量覆盖。

## 安装

```bash
npm install -g @snubisks/opencode-axonhub-tracing
# 或
bun add -g @snubisks/opencode-axonhub-tracing
```

## 启用插件

在 `opencode.json` 中添加：

```json
{
  "$schema": "https://opencode.ai/config.json",
  "plugin": ["@snubisks/opencode-axonhub-tracing"]
}
```

## 配置（可选）

默认 key：
- `AH-Thread-Id`
- `AH-Trace-Id`

可用环境变量覆盖：

- `OPENCODE_AXONHUB_TRACING_THREAD_HEADER`
- `OPENCODE_AXONHUB_TRACING_TRACE_HEADER`

示例：

```bash
export OPENCODE_AXONHUB_TRACING_THREAD_HEADER="X-Thread-Id"
export OPENCODE_AXONHUB_TRACING_TRACE_HEADER="X-Trace-Id"
```

说明：空字符串会自动回退到默认 key。

## 行为说明

- Thread ID：使用 OpenCode 的 `sessionID`
- Trace ID：使用 OpenCode 当前用户消息 `message.id`
- 若当前消息没有 `id`，仅注入 thread header

## 开发

```bash
bun install
bun test
bun run build
```