open-index/open-npm huggingface dataset:
npm package: @krlwlfrt/async-pool
Description: Async pool for iterables
Author: Karl-Philipp Wulfert
Latest version: 1.1.2

# @krlwlfrt/async-pool

[![pipeline status](https://img.shields.io/gitlab/pipeline/krlwlfrt/async-pool.svg?style=flat-square)](https://gitlab.com/krlwlfrt/async-pool/commits/master) 
[![npm](https://img.shields.io/npm/v/@krlwlfrt/async-pool.svg?style=flat-square)](https://npmjs.com/package/@krlwlfrt/async-pool)
[![license)](https://img.shields.io/npm/l/@krlwlfrt/async-pool.svg?style=flat-square)](https://opensource.org/licenses/MIT)
[![documentation](https://img.shields.io/badge/documentation-online-blue.svg?style=flat-square)](https://krlwlfrt.gitlab.io/async-pool)

This is a TypeScript enabled version of [tiny-async-pool](https://github.com/rxaviers/async-pool).

## Usage

```typescript
import {asyncPool} from '@krlwlfrt/async-pool/lib/async-pool';

// can be anything that is iterable (aka implements Iterable)
const inputIterable = [100, 200, 300, 400];

/**
* Multiply input number by two
* 
* @param item Number to multiply by two
*/
async function iteratorFunction (item: number): Promise<number> {
  return item * 2;
}

// invoke async pool with limit 2 - meaning 2 iterator functions are executed simultaneously
asyncPool(2, inputIterable, iteratorFunction).then((result) => {
  console.log(result); // outputs [ 200, 400, 600, 800 ]
});
```

## Documentation

See [online documentation](https://krlwlfrt.gitlab.io/async-pool) for detailed API description.
npm package: @krmao/react-native-captcha
Description: @krmao/react-native-captcha
Author: kr.mao
Latest version: 1.0.4

# react-native-captcha

[![npm version](https://badge.fury.io/js/@krmao%2Freact-native-captcha.svg)](https://badge.fury.io/js/@krmao%2Freact-native-captcha)

## Preview

<img alt='Capture' src="preview/Capture_W_360_FPS_48.gif" width='360'>

## Installation

```shell
yarn add @krmao/react-native-captcha
yarn add react-native-gesture-handler
yarn add react-native-reanimated
yarn add react-native-get-random-values
yarn add crypto-js
```

## Usage

```javascript
import Captcha from '@krmao/react-native-captcha';

export default function App() {
  return (
    <SafeAreaView style={styles.root}>
      <ScrollView style={styles.scrollView} contentContainerStyle={styles.scrollViewContainer}>
        <StatusBar translucent={true} backgroundColor={'#0000ff33'} barStyle={'dark-content'} />
      </ScrollView>
      <Captcha />
    </SafeAreaView>
  );
}
```

## Props

```typescript
export interface CaptchaProps {
  /**
   * 禁用滑块滑动, default false
   */
  disableSlider?: boolean;
  localBubbleBehindType?: LocalBubbleBehindType;
  /**
   * 校验的误差范围内算成功 default 3
   */
  maxOffset?: number;
  /**
   * 滑块尺寸 default 38
   */
  thumbSize?: number;
  /**
   * 弹窗尺寸 default 49
   */
  bubbleSize?: number;
  /**
   * 底图宽度 default 292
   */
  imageWidth?: number;
  /**
   * 底图高度 default 145
   */
  imageHeight?: number;
  verifyLocal?: (
    sliderCurrentProgress: number,
    randomBubbleXProgress: number,
    maxOffset: number,
    events: PanGestureHandlerEventPayload[],
    touchTime: number | undefined
  ) => boolean;
  verifyRemote?: (
    isVerifyLocalSuccess: boolean,
    slideValue: number,
    maxOffset: number,
    events: PanGestureHandlerEventPayload[],
    touchTime: number | undefined
  ) => Promise<boolean>;
  /**
   * sliding start
   */
  onSlidingStart?: () => void;
  onSlidingTouchBegin?: () => void;
  /**
   * on refresh clicked
   */
  onRefreshClicked?: () => void;
  onSlidingComplete?: () => void;
  /**
   * replace the all background image sources
   */
  imageBackgroundSources?: ImageSourcePropType[];
  /**
   * replace the all bubble image sources
   */
  imageBubbleSources?: BubbleSource[];
  /**
   * replace the refresh image sources
   */
  imageRefreshSource?: ImageSourcePropType;
  /**
   * 向右滑动滑块解锁拼图
   */
  defaultSliderText?: string;
}
```

## Todo

- I will remove the **_[react-native-awesome-slider](example%2Fsrc%2Fcomponents%2Freact-native-awesome-slider)_** source code if my **_[Pull request](https://github.com/alantoa/react-native-awesome-slider/pull/69)_** is merged

## Contributing

See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.

## License

MIT

---

Made with [create-react-native-library](https://github.com/callstack/react-native-builder-bob)
npm package: @krmao/react-native-talkingdata
Description: react-native talkingdata library
Author: kr.mao
Latest version: 0.0.21

## @krmao/react-native-talkingdata

[![npm version](https://badge.fury.io/js/@krmao%2Freact-native-talkingdata.svg)](https://badge.fury.io/js/@krmao%2Freact-native-talkingdata)

### Install

```shell
yarn add @krmao/react-native-talkingdata
```

### Init

```typescript
//region init talkingdata
let appId = Constants.TALKING_DATA_APP_ID;
let channelId = 'default';
let custom = 'hello talking data';
TalkingDataSDK.init(appId, channelId, custom);
TalkingDataSDK.startA();
TalkingDataSDK.setExceptionReportEnabled(true);
//endregion
```

### For Typescript

> react-native-talkingdata.d.ts

```ts
declare module '@krmao/react-native-talkingdata' {
    export const TalkingDataSDK: {
        init: (appId, channelId, custom) => void;
        startA: () => void;
        setExceptionReportEnabled: (boolean) => void;
    };

    export const TalkingDataGender: any;
    export const TalkingDataProfile: any;
    export const TalkingDataProfileType: any;
    export const TalkingDataSDK: any;
    export const TalkingDataSearch: any;
}
```

### For Google Play

> config root build.gradle in android project

```
buildscript {
    ext {
        enableTalkingDataGooglePlay = true // default false
    }
}
```

### Issues

- [libTalkingDataSDK.a](ios%2FlibTalkingDataSDK.a) not support ios simulators, but support real iphone.
- [TalkingDataSDK.xcframework](ios%2FTalkingDataSDK.xcframework) support both ios simulators and real iphone.
- [com.apple.commcenter.coretelephony.xpc was invalidated](https://stackoverflow.com/a/54692253/4348530)
npm package: @krmao/react-native-umshare
Description: react-native umshare library
Author: kr.mao
Latest version: 0.0.8

## @krmao/react-native-umshare

### .github/workflows

> 每次推送自动打包发布到 npmjs<br/>
> 需要新建 [Npmjs Classic Token](https://www.npmjs.com/settings/krmao/tokens/)
> 放到 [Repository secrets](https://github.com/krmao/react-native-umshare/settings/secrets/actions)