open-index/open-npm huggingface dataset:
npm package: @kangwuyi/vue3-sketch-ruler
Description: A sketch ruler for VueJS 3
Author: kwy
Latest version: 0.1.3

# vue3-sketch-ruler

<p align="center">
  <a href="https://www.npmjs.com/package/@kangwuyi/vue3-sketch-ruler"><img src="https://img.shields.io/npm/dm/@kangwuyi/vue3-sketch-ruler.svg?sanitize=true" alt="Downloads"></a>
  <a href="https://www.npmjs.com/package/@kangwuyi/vue3-sketch-ruler"><img src="https://img.shields.io/npm/v/@kangwuyi/vue3-sketch-ruler.svg?sanitize=true" alt="Version"></a>
  <a href="https://www.npmjs.com/package/@kangwuyi/vue3-sketch-ruler"><img src="https://img.shields.io/npm/l/@kangwuyi/vue3-sketch-ruler.svg?sanitize=true" alt="License"></a>
</p>

<p align="center">
  <a href="https://orcid.org/0009-0009-0993-7629"><img src="https://img.shields.io/badge/iD-0009--0009--0993--7629-f5f5f5" alt="Orcid"></a>
  <a href="https://ko-fi.com/kwy"><img src="https://badgen.net/badge/icon/kofi?icon=kofi&label=kwy&color=F16061" alt="Kwy"></a>

<!-- [![iD: 0009-0009-0993-7629](https://img.shields.io/badge/0009--0009--0993--7629-blue.svg?style=for-the-badge&logo=orcid)](https://orcid.org/0009-0009-0993-7629) [![Ko-fi](https://img.shields.io/badge/ko--fi-F16061?style=for-the-badge&logo=kofi&logoColor=f5f5f5)](https://ko-fi.com/kwy) -->

</p>

<p align="center">

![Depfu](https://img.shields.io/depfu/kangwuyi/vue3-sketch-ruler) ![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/kangwuyi/vue3-sketch-ruler) [![Code Coverage](https://img.shields.io/codecov/c/github/kangwuyi/vue3-sketch-ruler)](https://codecov.io/github/kangwuyi/vue3-sketch-ruler) [![Code Coverage](https://github.com/kangwuyi/vue3-sketch-ruler/actions/workflows/node.js.yml/badge.svg)](https://github.com/kangwuyi/kangwuyi/vue3-sketch-ruler)


</p>

## Installation

```bash
# use yarn
yarn add @kwy/vue3-sketch-ruler
# use npm
npm install --save @kwy/vue3-sketch-ruler
```

## How to use
```js
import { createApp } from 'vue'
import Ruler from '@kwy/vue3-sketch-ruler'
import 'vue3-sketch-ruler/build/vue3-sketch-ruler.css'
import App from './App.vue'

const app = createApp(App)
app.use(Spinner)
app.mount('#app')
```

## In file vue
```html
<imp-sketch-ruler name="circle" color="red" />
```

## 参数配置等

详见 vue3-ruler/src/App.vue 文件
npm package: @kangyasin/crypt-aes-node
Description: crypt-aes-node uses AES 256 for encryption or decryption. This library can be used for encryption and decryption of strings using Node on iOS and Android
Author: Kang Yasin
Latest version: 1.0.4

# crypt-aes-node

A module to encrypt/decrypt string in Node, written in ES6.

Using companion framework libraries, you should be able to encrypt/decrypt between node, iOS and Android.

Companion libs can be found here: [Cross Platform AES Encryption](https://github.com/kangyasin/AES-CrossPlatform)


## Installation

`npm install @kangyasin/crypt-aes-node --save`

## Usage

### Encrypt Decrypt with Random IV
In this mode the library will internally create a random IV while encryption and while decryption it will ignore the initial vector chars. **This will always create a different cipherText for the same plain text and key**

```javascript
const plainText = "this is my plain text";
const key = "your key";

const cryptLib = require('@kangyasin/crypt-aes-node');

const cipherText = cryptLib.encryptPlainTextWithRandomIV(plainText, key);
console.log('cipherText %s', cipherText);

const decryptedString = cryptLib.decryptCipherTextWithRandomIV(cipherText, key);
console.log('decryptedString %s', decryptedString);
```

### Basic Encrypt Decrypt

```javascript
const cryptLib = require('@kangyasin/crypt-aes-node');
const iv = cryptLib.generateRandomIV(16); //16 bytes = 128 bit
const key = cryptLib.getHashSha256('my secret key', 32); //32 bytes = 256 bits
const cipherText = cryptLib.encrypt('This is the text to be encrypted', key, iv);

console.log(cipherText);

const decryptedString = cryptLib.decrypt(cipherText, key, iv);

console.log(decryptedString);
```


## Run Code Sample

`npm start`

## Tests

`npm test`

## Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style.
Add unit tests for any new or changed functionality. Lint and test your code.


## License

MIT license; see [LICENSE](./LICENSE).

(c) 2022 by Kang Yasin
npm package: @kangyong/data-refactor
Description: refactor data structure
Author: kangyong
Latest version: 0.1.3

# data-refactor

数据格式化

用于前后端分离的 web 项目的接口字段格式化

## install

`npm i data-refactor`

## usage

`refactor(tar, rule [, strict = true])`

```js
import refactor from 'data-refactor';

const tar = {
  pic: 'https://unsplash.it/800/800/?random',
  nick_name: 11,
  age: '13',
  is_adult: 1,
  obj: {
    opt1: 1,
    opt2: 'dsds',
  },
  postscript: [
    {
      ps_id: '11',
      ps_name: 'sth11',
    },
    {
      ps_id: 12,
      ps_name: 'sth12',
    },
  ],
  deepArr: [
    [
      { da_id: 1, da_name: '1', da_other: 'ss' },
      { da_id: 2, da_name: '2', da_other: 'ss' },
    ],
    [{ ea_id: 1, ea_name: '1' }, { ea_id: 2, ea_name: '2' }],
    [{ fa_id: 1, fa_name: '1' }, { fa_id: 2, fa_name: '2' }],
  ],
};

const rule = {
  avatar: 'pic',

  nickname1: 'nick_name|String',
  nickname2: 'nick_name|string',
  nickname3: 'nick_name|str',

  age1: 'age|Number',
  age2: 'age|number',
  age3: 'age|num',

  isAdult1: 'is_adult|Boolean',
  isAdult2: 'is_adult|boolean',
  isAdult3: 'is_adult|bool',

  obj: {
    p1: 'opt1|num',
    p2: 'opt2',
  },

  o: 'obj',
  _o: {
    p1: 'opt1|num',
    p2: 'opt2',
  },

  ps1: 'postscript',

  ps2: 'postscript',
  _ps2: [
    {
      id: 'ps_id',
      name: 'ps_name',
    },
  ],

  da: 'deepArr',
  deepArr: [
    [
      {
        id: 'da_id|bool',
        name: 'da_name',
      },
    ],
    [
      {
        id: 'ea_id',
        name: 'ea_name',
      },
    ],
    [
      {
        id: 'fa_id',
        name: 'fa_name',
      },
    ],
  ],
};

const strict = !0;

const resStrict = refactor(tar, rule, strict);
```

## params

- tar
  - 操作对象
- rule
  - 格式化规则
- strict 是否严格格式化

  - 默认 false
  - 严格格式化所得结果与 rule 完全一致, 不含无用字段

## suport

### 格式化数据

`key|type`

- `Number|number|num`
- `String|string|str`
- `Boolean|boolean|bool`

### 操作符

- \_ 对象或数组的内部映射
- | 类型分割符
- . 属性运算符

## 后续优化

- 支持函数规则
- 支持修改预设操作符 \_ | .

## 构建

- `cnpm i`
- `npm run dev`
- 浏览器访问 http://localhost:3000
- 浏览器访问 http://localhost:3000/example/....html
- `npm run build`
npm package: @kangyong/mock-server
Description: 基于 express 的前端 mock server 插件，按照一定的规则编写脚本即可快速的输出对应接口的响应
Author: kangyong
Latest version: 0.0.4

# @kons/mock-server

基于 express 的前端 mock server 插件，按照一定的规则编写脚本即可快速的输出对应接口的响应

也可结合 webpack-dev-server 快速配置

## 特性

- 请求方法支持 GET、POST、DELETE、PUT
- 支持占位符传参
- 返回数据支持 Function、Object、String
- 任意修改，无需重启服务，即可更新数据

## Usage

### 单独使用

```js
const { init } = require('@kons/mock-server');
const path = require('path');

init({
	port: 3000,
	mockDir: path.resolve(__dirname, '../mock'),
	proxyTable: {},
});
```

### 配合 webpack-dev-server 使用

```js
const { init: initMock } = require('@kons/mock-server');
const path = require('path');

const devServer = {
	before: (app, server) => {
		initMock(
			{
				port: 3000,
				mockDir: path.resolve(__dirname, '../mock'),
				proxyTable: {},
			},
			app
		);
	},
};
```

### mock 文件规范

```js
module.exports = {
	'GET /api/testGetFunction': (req, res) => {},
	'GET /api/testGetObject': { data: '123' },
	'GET /api/testGetString': '123',
	'POST /api/testPost': '',
	'POST/ api/testMatch/:id/:name': '',
	'PUT /api/testPut': '',
	'DELETE /api/testDelete': '',
};
```

## Todo List

- 支持 es6 module
- 添加单元测试
- 使用 try catch 自行处理 mock 文件里的错误 不在命令行抛出
- 改写为 webpack plugin
npm package: @kangyoosam/react-native-readmore
Description: 'ReadMore to your text'
Author: KangYoosam
Latest version: 1.0.2

# react-native-readmore
This repository is Fork of(inspired by) https://github.com/expo/react-native-read-more-text

![Example](https://i.imgur.com/F6Lre6Y.gif)

### Installation

```
npm i --save @kangyoosam/react-native-readmore
```
or
```
yarn add kangyoosam/react-native-readmore
```

### Usage
※full code is located at `example/App.tsx` file of this repo.

```javascript
export default class App extends React.Component {
  readMore = handlePress => (
    <Text style={styles.readMore} onPress={handlePress}>
      ...ReadMore
    </Text>
  )

  hide = handlePress => {
    return null
  }

  render() {
    return (
      <View style={styles.container}>
        <View style={styles.card}>
          <ReadMore
            numberOfLines={2}
            renderTruncatedFooter={this.readMore}
            renderRevealedFooter={this.hide}
          >
            <Text style={styles.cardText}>
              {text}
            </Text>
          </ReadMore>
        </View>
      </View>
    );
  }
}
```
npm package: @kaniamb/tziki-gherkin-parser
Description: This project is built on top of the package "wdio-cucumber-parallel-execution-master" for customized needs.
Latest version: 1.0.51
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# tziki-gherking-parser

This project is built on top of the package "wdio-cucumber-parallel-execution-master" for customized needs.