open-index/open-npm huggingface dataset:
npm package: @kwasniew/hyperapp-fx
Description: Effects for use with Hyperapp
Author: Wolfgang Wedemeyer
Latest version: 2.0.0-beta.2

# Hyperapp FX

[![Build Status](https://travis-ci.org/okwolf/hyperapp-fx.svg?branch=HAv2)](https://travis-ci.org/okwolf/hyperapp-fx)
[![codecov](https://codecov.io/gh/okwolf/hyperapp-fx/branch/HAv2/graph/badge.svg)](https://codecov.io/gh/okwolf/hyperapp-fx/branch/HAv2)
[![npm](https://img.shields.io/npm/v/hyperapp-fx/next.svg)](https://www.npmjs.com/package/hyperapp-fx/v/next)
[![Slack](https://hyperappjs.herokuapp.com/badge.svg)](https://hyperappjs.herokuapp.com "Join us")

A handy set of effects for use with [Hyperapp](https://github.com/jorgebucaran/hyperapp).

## Getting Started

Here's a taste of how to use a common effect for making HTTP requests. The app displays inspiring quotes about design, fetching a new quote each time the user clicks on the current one. Go ahead and [try it online here](https://codepen.io/okwolf/pen/vPbMaa?editors=0010).

```js
import { h, app } from "hyperapp"
import { Http } from "hyperapp-fx"

const GetQuote = () => [
  "...",
  Http({
    url:
      "https://quotesondesign.com/wp-json/posts?filter[orderby]=rand&filter[posts_per_page]=1",
    action: (_, [{ content }]) => content
  })
]

app({
  init: "Click here for quotes",
  view: quote => <h1 onclick={GetQuote}>{quote}</h1>,
  container: document.body
})
```

More [examples](https://codepen.io/collection/ArmxQj) are available to show other effects in action.

## Installation

<pre>
npm i <a href=https://www.npmjs.com/package/hyperapp-fx/v/next>hyperapp-fx@next</a>
</pre>

Then with a module bundler like [Rollup](https://rollupjs.org) or [Webpack](https://webpack.js.org), use as you would anything else.

```js
import { Http } from "hyperapp-fx"
```

If you don't want to set up a build environment, you can download Hyperapp FX from a CDN like [unpkg.com](https://unpkg.com/hyperapp-fx@next) and it will be globally available through the <samp>window.hyperappFx</samp> object. We support all ES5-compliant browsers, including Internet Explorer 10 and above. Use of the [`Http`](api.md#module_fx.exports.Http) effect requires a polyfill.

```html
<script src="https://unpkg.com/hyperapp-fx@next"></script>
```

## [API documentation](api.md)

## License

Hyperapp FX is MIT licensed. See [LICENSE](LICENSE.md).
npm package: @kwatson/ember-cli-notifications
Description: Atom inspired notification messages for ember-cli
Author: Jonathan Steele
Latest version: 4.4.0

# ember-cli-notifications

[![Greenkeeper badge](https://badges.greenkeeper.io/stonecircle/ember-cli-notifications.svg)](https://greenkeeper.io/)

[![Download count all time](https://img.shields.io/npm/dt/ember-cli-notifications.svg)](https://www.npmjs.com/package/ember-cli-notifications)
[![NPM package](https://img.shields.io/npm/v/ember-cli-notifications.svg)](https://www.npmjs.com/package/ember-cli-notifications) [![Build Status](https://img.shields.io/travis/stonecircle/ember-cli-notifications.svg)](https://travis-ci.org/stonecircle/ember-cli-notifications) [![Ember Observer Score](http://emberobserver.com/badges/ember-cli-notifications.svg)](http://emberobserver.com/addons/ember-cli-notifications) [![Code Climate](https://codeclimate.com/github/codeclimate/codeclimate/badges/gpa.svg)](https://codeclimate.com/github/codeclimate/codeclimate)

An [Ember CLI] addon that adds [Atom] inspired notification messages to your app.

Interactive documentation can be found [here].

## Installation

```shell
ember install ember-cli-notifications
```

## 4.0.0

As of 4.0.0, the addon is service based. You will need to inject the service into your consuming app.

```js
notifications: Ember.inject.service('notification-messages')
```

See the [documentation] for a sample initializer to inject the service into all controllers, routes and components.

[Ember CLI]: http://ember-cli.com
[Atom]: https://github.com/atom/notifications
[here]: http://ynnoj.github.io/ember-cli-notifications
[documentation]: http://ynnoj.github.io/ember-cli-notifications
npm package: @kway/core
Description: @kway/core是基于Koa、GraphQL搭建的服务程序
Latest version: 0.1.3

# @kway/core 使用说明
## 介绍
@kway/core是基于Koa、GraphQL搭建的服务程序

## 安装

> 目前属于实验阶段，npm i @kway/core

## 使用

```
import server from '@kway/core`

server.listen({
  models, // 数据处理模型程序
  auth, // 服务器请求验证方法
  handlers // 自定义Koa解决器
})
```

## 参数说明


### models // 数据处理模型程序

如定义Test为数据处理模型则
```
import Test from './models/test`
{
  models: {test: Test}
}
```

### 请求验证方法 返回Boolean true-请求通过 false-请求被拒绝
```
{
  auth(request /*请求对象，等同于Koa的ctx.request对象*/){
    // 验证提交数据内容，如token或sessionid
    return true
  }
}
```
### 自定义Koa解决器

```
handlers: [
  async function (ctx, next) {
    if (ctx.path.indexOf('/test') > -1) {
      ctx.body = await 'foo'
    } else {
      await next()
    }
  }
]
```
npm package: @kwayteow/utils
Description: [![npm version](https://img.shields.io/npm/v/@kwayteow/utils)](https://www.npmjs.com/package/@kwayteow/utils) [![npm downloads](https://img.shields.io/npm/dm/@kwayteow/utils)](https://www.npmjs.com/package/@kwayteow/utils)
Author: kway-teow
Latest version: 0.8.0

# @kwayteow/utils

[![npm version](https://img.shields.io/npm/v/@kwayteow/utils)](https://www.npmjs.com/package/@kwayteow/utils)
[![npm downloads](https://img.shields.io/npm/dm/@kwayteow/utils)](https://www.npmjs.com/package/@kwayteow/utils)

一个实用的 TypeScript 工具函数库，提供了常用的工具函数集合。

## 安装

```bash
npm install @kwayteow/utils

# 或者
yarn add @kwayteow/utils

# 或者
pnpm add @kwayteow/utils

```

## 使用

```typescript
import { formatDate, formatBankCard, capitalize } from '@kwayteow/utils'

// 日期格式化
const date = formatDate(new Date(), 'YYYY-MM-DD HH:mm:ss')
console.log(date) // 2024-03-22 10:30:00

```
## 文档

[API](https://kway-teow.github.io/utils/index.html)

## 开发

```bash
# 安装依赖
pnpm install

# 开发
pnpm dev

# 测试
pnpm test

# 提交代码
pnpm cz
```

## License

MIT
npm package: @kweaver-ai/bkn
Description: BKN SDK - Parse, validate, and transform Business Knowledge Network files
Latest version: 0.1.2

# BKN TypeScript SDK

Parse, validate, and transform [BKN (Business Knowledge Network)](../../docs/SPECIFICATION.md) files.

## Installation

**From npm (after publish):**

```bash
npm install @kweaver-ai/bkn
```

**From this monorepo (development):**

```bash
cd sdk/typescript
npm install
npm run build
```

## Usage

```typescript
import {
  loadNetwork,
  parseBkn,
  validateNetwork,
  generateChecksum,
  verifyChecksum,
} from "@kweaver-ai/bkn";

// Load a network directory (auto-discovers network.bkn)
const network = await loadNetwork("examples/k8s-network");

// Parse a single file
const doc = parseBkn(text, { sourcePath: "path/to/file.bkn" });

// Validate network data tables
const result = validateNetwork(network);
if (!result.ok) {
  console.error(result.errors);
}

// Generate and verify checksum
await generateChecksum("examples/k8s-network");
const { ok, errors } = await verifyChecksum("examples/k8s-network");
```

## API

- `parseBkn(text, options?)` — Parse .bkn/.bknd text into BknDocument
- `loadBknFile(path, options?)` — Load and parse a single file
- `loadNetwork(pathOrDir, options?)` — Load network with includes
- `discoverRootFile(directory)` — Find network root file
- `validateDocument(doc, options?)` — Validate document structure
- `validateNetwork(network, options?)` — Validate all data tables
- `validateDataTable(table, schema?, network?)` — Validate a data table
- `generateChecksum(path, options?)` — Generate CHECKSUM file
- `verifyChecksum(path, options?)` — Verify CHECKSUM file
- `packToTar(sourceDir, outputPath, options?)` — Pack BKN directory to tar (macOS: COPYFILE_DISABLE=1)

## Compatibility

- **strict**: Follow spec canonical forms
- **compat**: Accept example drift (`type: knowledge_network`, `Affect Object` → `Scope of Impact`, etc.)

## Tests

```bash
npm test
```
npm package: @kweaver-ai/components
Description: dip-components
Latest version: 1.0.1

# 参考文档

## 一、使用

### 1、示例

```
// 第一步：安装（版本号，从构建中查看）
yarn add @dip/components@<版本号> --registry http://repository.aishu.cn:8081/repository/npm-all/  --network-timeout 300000

// 第二步：引入
// 根据具体情况，决定使用 full.js 还是 min.js，区别见2.5
import { apis } from '@dip/components';
import '@dip/components/dist/dip-components.full.css';

// 设置dip-components所需的信息
apis.setup({
    protocol,
    host,
    port,
    lang,
    getToken,
    prefix: '',
    theme,
    popupContainer,
    refreshToken,
    onTokenExpired,
});

// 第三步：使用组件
import { apis, components } from '@dip/components';

const unmount = apis.mountComponent(
    components.AccessorPicker,
    {
        onSelect: (selections: any) => {
            // 确定选中
        },
        onCancel: () => {
            // 取消，这里需要注销组件
            unmount();
        },
    },
    accessorPickerRef.current // 或者 document.getElementId('xxx')
);

```

### 2、组件

- AccessorPicker：用户组织选择弹窗

- Preview：预览。目前仅支持pdf预览

- uploadFn：本地上传

- selectFn：选择文档中心文件

- PermConfig：单个实例/类型权限配置

- Authorization：批量实例授权

## 二、开发

### 2.1、安装依赖库

`yarn install`

### 2.2、运行

`yarn start`

### 2.3、页面访问

http://localhost:2000/demo.html

### 2.4、如何查看某一个组件的效果

在 src/pages/pages/Demo/index.tsx 中引入组件，然后访问 http://localhost:2000/demo.html

### 2.5、如何打包

`yarn build`

执行后，会生成dist目录，此目录下会生成dip-components.full.js 和 dip-components.min.js。

其中dip-components.min.js不包含 react、react-dom、lodash，适合已安装react、react-dom v18 + lodash v4的产品使用。

dip-components.full.js包含所有的库，像 vue 框架可使用此文件。

后续，产物会加上 ES Modules（ESM）格式的。

## 三、构建 & 推送到npm源

后续
npm package: @kweaver-ai/i18nfactory
Description: i18nFactory
Author: wang.lianyan
Latest version: 1.0.1

# i18n工厂函数

1. 初始化，获取i18n实例
```js
// i18n.js
import i18nFactory from '@kweaver-ai/i18nfactory'

export default i18nFactory({translations: ['zh-cn', 'zh-tw', 'en-us'], locale: 'zh-tw'})
```

2. 传入国际化语言资源
```js
// locale.js
import i18n from './i18n'

export default i18n([
    [
        '正在设置...',
        '正在設定...',
        'Setting...',
    ],
])
```

3. 使用
```js
import __ from './locale'
...

<span>{__('正在设置...')}</span>
```
npm package: @kweaver-ai/ui
Description: one-ui
Author: aishu.cn
Latest version: 1.0.0

## 介绍

@kweaver-ai/ui 让 antd 使用更加得心应手，实现业务的快速迭代。其中包含 antd 所有组件，以及一些高频次自定义业务组件，支持按需打包。
支持 typescript

## 安装

安装包

```sh
yarn add @kweaver-ai/ui
```

## 使用

### 使用组件

```javascript
import { Button } from "@kweaver-ai/ui";
import "@kweaver-ai/ui/dist/ui.min.css";
```

### 使用图标

```javascript
import { ApplistOutlined, ApplistFilled } from "@kweaver-ai/ui/icons";

// outlined 为线框风格
// filled 为实底风格
```

### 按需加载

1、js 按需加载：

- @kweaver-ai/ui 默认支持基于 ES modules 的 tree shaking，对于 js 部分，直接引入 `import { Button } from '@kweaver-ai/ui'` 就会有按需加载的效果。

2、样式按需加载：

- 手动引入：

```javascript
import { Button } from "@kweaver-ai/ui";
import "@kweaver-ai/ui/es/button/style";
```

- 如果你使用了 babel，可以使用`babel-plugin-import`来进行按需加载，加入这个插件后：

```javascript
import { Button } from "@kweaver-ai/ui";
```

注：`babel-plugin-import`的配置如下

```javascript
{
  plugins: [
    [
      "import",
      {
        libraryName: "@kweaver-ai/ui",
        style: true, // or 'css'
        customName: require("@kweaver-ai/ui/utils"), // or (name, file) => require('@kweaver-ai/ui/utils')(name, file, 'es'). default 'lib'.
      },
    ],
  ];
}
```