open-index/open-npm huggingface dataset:
npm package: @flyskypie/three-asset-inventory
Description: ## Usage
Latest version: 0.1.2

# Three Asset Inventory

## Usage

```javascript
import { AssetInventory } from '@flyskypie/three-asset-inventory';

const inventory = new AssetInventory();

// Setup assets meta.
inventory.add.texture('cube-texture','assets/texture/cube.png');

// Setup progress event
inventory.load.on('progress', ({ progress, total }) => {
    const persentage = (progress / total * 100).toFixed(2);
    // Update your loading page.

})

inventory.load.on('complete', () => {
    // Start your app.
})

// Start the loading process.
inventory.load.start();

```


## TODO

- [x] Texture
- [ ] Animation
- [ ] Audio
- [ ] BufferGeometry
- [ ] CompressedTexture
- [ ] CubeTexture
- [ ] DataTexture
- [ ] File
- [ ] ImageBitmap
- [ ] Image
- [ ] Material
- [ ] Object
npm package: @flyskywhy/react-native-alioss
Description: Manipulate files in Aliyun OSS bucket
Author: yuzhiyi
Latest version: 1.1.1

## react-native-alioss

[![npm version](http://img.shields.io/npm/v/@flyskywhy/react-native-alioss.svg?style=flat-square)](https://npmjs.org/package/@flyskywhy/react-native-alioss "View this project on npm")
[![npm downloads](http://img.shields.io/npm/dm/@flyskywhy/react-native-alioss.svg?style=flat-square)](https://npmjs.org/package/@flyskywhy/react-native-alioss "View this project on npm")
[![npm licence](http://img.shields.io/npm/l/@flyskywhy/react-native-alioss.svg?style=flat-square)](https://npmjs.org/package/@flyskywhy/react-native-alioss "View this project on npm")
[![Platform](https://img.shields.io/badge/platform-ios%20%7C%20android-989898.svg?style=flat-square)](https://npmjs.org/package/@flyskywhy/react-native-alioss "View this project on npm")

Manipulate files in Aliyun OSS bucket.

## Install


For RN >= 0.60
```shell
npm i --save @flyskywhy/react-native-alioss
cd ios
pod install
```

For RN < 0.60
```
npm install @flyskywhy/react-native-alioss@1.0.x --save
react-native link @flyskywhy/react-native-alioss
```

## Usage
Ref to index.js
npm package: @flyskywhy/react-native-android-shell
Description: This module for execute shell android, use command and execute shell
Author: M Julius
Latest version: 2.0.1

# @flyskywhy/react-native-android-shell

[![npm version](http://img.shields.io/npm/v/@flyskywhy/react-native-android-shell.svg?style=flat-square)](https://npmjs.org/package/@flyskywhy/react-native-android-shell "View this project on npm")
[![npm downloads](http://img.shields.io/npm/dm/@flyskywhy/react-native-android-shell.svg?style=flat-square)](https://npmjs.org/package/@flyskywhy/react-native-android-shell "View this project on npm")
[![npm licence](http://img.shields.io/npm/l/@flyskywhy/react-native-android-shell.svg?style=flat-square)](https://npmjs.org/package/@flyskywhy/react-native-android-shell "View this project on npm")
[![Platform](https://img.shields.io/badge/platform-android-989898.svg?style=flat-square)](https://npmjs.org/package/@flyskywhy/react-native-android-shell "View this project on npm")

This module is for execute shell command on android.

On rooted device with e.g. [install-supersu](https://github.com/flyskywhy/install-supersu), even can run root command, e.g.
```
AndroidShell.executeCommand(
    'su -c ifconfig eth0 down; su -c ifconfig eth0 hw ether 19:21:19:49:20:21; su -c ifconfig eth0 up',
    (result) => {},
);
```

1.x if gradle < 7
2.x if gradle >= 7

---

---

Forked from [react-native-android-shel](https://github.com/M-Julius/react-native-android-shell), and fix `Error: Program type already present: com.reactlibrary.BuildConfig` on release build. Below is its README.

---

---

## Screenshot
![Alt text](img/ls.png?raw=true "ls command")
![Alt text](img/id.png?raw=true "id command")
![Alt text](img/uname.png?raw=true "uname command")


## Getting started

`$ npm install @flyskywhy/react-native-android-shell --save`

## Usage
```javascript
import AndroidShell from '@flyskywhy/react-native-android-shell';

// TODO: What to do with the module?
AndroidShell.executeCommand('your Command', (result) => {
  console.log(result)
});
```
## Example
```javascript
import React, { Component } from 'react';
import { View, Text } from 'react-native';
import AndroidShell from '@flyskywhy/react-native-android-shell'

class demo extends Component {
    constructor(props) {
        super(props);
        this.state = {
            result: ''
        };
    }

    componentDidMount() {
        AndroidShell.executeCommand("ls", (result) => {
            this.setState({ result: 'yeu : ' + result });
            console.log('Result :', result);
        });
    }

    render() {
        return (
            <View style={{alignItems: 'center', flex: 1 }}>
                <Text>{this.state.result}</Text>
            </View>
        );
    }
}

export default demo;
```
npm package: @flyskywhy/react-native-locale-detector
Description: Detects the locale of a user's phone.
Author: Dylan Vann
Latest version: 1.0.7

# react-native-locale-detector

Detects the locale of a user's phone.
Based on [react-native-i18n](https://github.com/AlexanderZaytsev/react-native-i18n), but this just exports the device's locale. This isn't particularly useful on it's own and you'll probably want to use it with an i18n library like [i18next](https://github.com/i18next/i18next).

## Installation

```
npm install @flyskywhy/react-native-locale-detector --save
```

For RN < 0.60
```
react-native link
```

If got
```
> A failure occurred while executing com.android.build.gradle.tasks.VerifyLibraryResourcesTask$Action
   > Android resource linking failed
     ERROR: node_modules/@flyskywhy/react-native-locale-detector/android/build/intermediates/merged_res/release/values-v26/values-v26.xml:7: AAPT: error: resource android:attr/colorError not found.
```
you may need add below into `YOUR_APP/android/build.gradle`:
```
subprojects {
    afterEvaluate {
        project ->
            if (project.hasProperty("android")) {
                android {
                    compileSdkVersion = rootProject.compileSdkVersion
                    buildToolsVersion = rootProject.buildToolsVersion
                }
            }
    }
}
```

## Usage

```javascript
// Import the locale.
import locale from '@flyskywhy/react-native-locale-detector'

// We could log it. Maybe it's en-US...
console.log(locale)

// Or if you're using a localization library.
yourLocalizationLibrary.setLocale(locale)
```
npm package: @flyskywhy/react-native-qrcode-local-image
Description: A local qrcode image parse for react-native
Author: Li Zheng
Latest version: 2.0.1

# @flyskywhy/react-native-qrcode-local-image

[![npm version](http://img.shields.io/npm/v/@flyskywhy/react-native-qrcode-local-image.svg?style=flat-square)](https://npmjs.org/package/@flyskywhy/react-native-qrcode-local-image "View this project on npm")
[![npm downloads](http://img.shields.io/npm/dm/@flyskywhy/react-native-qrcode-local-image.svg?style=flat-square)](https://npmjs.org/package/@flyskywhy/react-native-qrcode-local-image "View this project on npm")
[![npm licence](http://img.shields.io/npm/l/@flyskywhy/react-native-qrcode-local-image.svg?style=flat-square)](https://npmjs.org/package/@flyskywhy/react-native-qrcode-local-image "View this project on npm")
[![Platform](https://img.shields.io/badge/platform-ios%20%7C%20android-989898.svg?style=flat-square)](https://npmjs.org/package/@flyskywhy/react-native-qrcode-local-image "View this project on npm")

A local qrcode image parse for react-native, support for ios and android

## Installation
```sh
yarn add @flyskywhy/react-native-qrcode-local-image
```

## Usage

### Example
```js
'use strict';

var React = require('react');
var ReactNative = require('react-native');
var {
    StyleSheet,
    View,
    Text,
} = ReactNative;

var Button = require('@remobile/react-native-simple-button');
var QRCode = require('@flyskywhy/react-native-qrcode-local-image');


module.exports = React.createClass({
    getInitialState() {
        return {text: ''}
    },
    onPress() {
        QRCode.decode(!app.isandroid?'/Users/fang/Desktop/qr.png':'/sdcard/qr.png', (error, result)=>{
            this.setState({text: JSON.stringify({error, result})});
        });
    },
    render() {
        return (
            <View style={styles.container}>
                <Button onPress={this.onPress}>测试</Button>
                <Text>
                    {this.state.text}
                </Text>
            </View>
        );
    }
});


var styles = StyleSheet.create({
    container: {
        flex: 1,
        backgroundColor: 'transparent',
        justifyContent: 'space-around',
        paddingVertical: 150,
    },
});
```

### method
- `decode(path, callback)` path canbe local image or url


### see detail use
* https://github.com/remobile/react-native-template
npm package: @flystorage/aws-s3
Description: <img src="https://raw.githubusercontent.com/duna-oss/flystorage/main/flystorage.svg" width="50px" height="50px" />
Author: Frank de Jonge
Latest version: 1.2.0

<img src="https://raw.githubusercontent.com/duna-oss/flystorage/main/flystorage.svg" width="50px" height="50px" />

# Flystorage adapter for AWS S3

This package contains the Flystorage adapter for AWS S3 using the V3 SDK.

## Installation

Install all the required packages

```bash
npm install --save @flystorage/file-storage @flystorage/aws-s3 @aws-sdk/client-s3
```

## Usage

```typescript
import {FileStorage} from '@flystorage/file-storage';
import {AwsS3StorageAdapter} from '@flystorage/aws-s3';
import {S3Client} from '@aws-sdk/client-s3';

const client = new S3Client();
const adapter = new AwsS3StorageAdapter(client, {
    bucket: '{your-bucket-name}',
    prefix: '{optional-path-prefix}',
});
const storage = new FileStorage(adapter);
```

> ⚠️ Always use the FileStorage, it is essential for security and a good developer
> experience. Do not use the adapter directly.
npm package: @flystorage/azure-storage-blob
Description: <img src="https://raw.githubusercontent.com/duna-oss/flystorage/main/flystorage.svg" width="50px" height="50px" />
Author: Frank de Jonge
Latest version: 1.2.0

<img src="https://raw.githubusercontent.com/duna-oss/flystorage/main/flystorage.svg" width="50px" height="50px" />

# Flystorage adapter for Azure Storage Blob

This package contains the Flystorage adapter for Azure Storage Blob

## Installation

Install all the required packages

```bash
npm install --save @flystorage/file-storage @flystorage/azure-storage-blob @azure/storage-blob
```

## Usage

```typescript
import {FileStorage} from '@flystorage/file-storage';
import {AzureStorageBlobStorageAdapter} from '@flystorage/azure-storage-blob';

const blobService = BlobServiceClient.fromConnectionString(process.env.AZURE_DSN!);
const container = blobService.getContainerClient('flysystem');
const adapter = new AzureStorageBlobStorageAdapter(container);
const storage = new FileStorage(adapter);
```

> ⚠️ Always use the FileStorage, it is essential for security and a good developer
> experience. Do not use the adapter directly.
npm package: @flystorage/chaos
Description: A storage adapter decorator with the ability to stage errors.
Author: Frank de Jonge
Latest version: 1.1.0

<img src="https://raw.githubusercontent.com/duna-oss/flystorage/main/flystorage.svg" width="50px" height="50px" />

# Flystorage adapter for chaos engineering

This package contains an adapter decorator that causes instrumented failures.

## Installation

Install all the required packages

```bash
npm install --save @flystorage/file-storage @flystorage/chaos
```

## Setup

```typescript
import {FileStorage} from '@flystorage/file-storage';
import {ChaosStorageAdapterDecorator, TriggeredErrors} from '@flystorage/chaos';

const strategy = new TriggeredErrors();
const adapter = new ChaosStorageAdapterDecorator(
    createActualAdapter(),
    strategy,
);
const storage = new FileStorage(adapter);
```

> ⚠️ Always use the FileStorage, it is essential for security and a good developer
> experience. Do not use the adapter directly.
 
## Usage

```typescript

import {TriggeredErrors} from '@flystorage/chaos';

const strategy = new TriggeredErrors();

// error on all write calls
strategy.on('write', () => new Error());

// error on first 2 stat calls
strategy.on('stat', () => new Error(), {times: 2});

// error after first 2 deleteFile calls
strategy.on('deleteFile', () => new Error(), {after: 2});

// error on 2nd and 3rd call to any method
strategy.on('*', () => new Error(), {after: 1, times: 2});
```
npm package: @flystorage/dynamic-import
Description: Utility to dynamically import ESM packages from CommonJS without tsc messing things up.
Author: Frank de Jonge
Latest version: 1.0.0

<img src="https://raw.githubusercontent.com/duna-oss/flystorage/main/flystorage.svg" width="50px" height="50px" />

# Utility for dynamically importing ESM code

The TypeScript compiler turns dynamic import statements into require calls. This breaks importing
ESM packages in CommonJS code.

This utility helps to work around this by provided a JavaScript function to do the actual importing.  

## Installation

Install all the required packages

```bash
npm install --save @flystorage/dynamic-import
```

## Usage

```typescript
const {dynamicallyImport} = require('@flystorage/dynamic-import');

async function useFileType() {
    const {fileTypeFromBuffer} = await dynamicallyImport<typeof import('file-type')>('file-type');
}

useFileType();
```
npm package: @flystorage/local-fs
Description: <img src="https://raw.githubusercontent.com/duna-oss/flystorage/main/flystorage.svg" width="50px" height="50px" />
Author: Frank de Jonge
Latest version: 1.2.0

<img src="https://raw.githubusercontent.com/duna-oss/flystorage/main/flystorage.svg" width="50px" height="50px" />

# Flystorage adapter for the local filesystem

This package contains the Flystorage adapter for the local filesystem.

## Installation

Install all the required packages

```bash
npm install --save @flystorage/file-storage @flystorage/local-fs
```

## Usage

```typescript
import {FileStorage} from '@flystorage/file-storage';
import {LocalStorageAdapter} from '@flystorage/local-fs';

const rootDirectory = resolve(process.cwd(), 'my-files');
const adapter = new LocalStorageAdapter(rootDirectory);
const storage = new FileStorage(adapter);
```

> ⚠️ Always use the FileStorage, it is essential for security and a good developer
> experience. Do not use the adapter directly.
npm package: @flystorage/multer-storage
Description: <img src="https://raw.githubusercontent.com/duna-oss/flystorage/main/flystorage.svg" width="50px" height="50px" />
Author: Frank de Jonge
Latest version: 1.2.0

<img src="https://raw.githubusercontent.com/duna-oss/flystorage/main/flystorage.svg" width="50px" height="50px" />

# Flystorage for multer

This package contains the Flystorage bindings for [multer](https://github.com/expressjs/multer).

This allows multer to upload to any of the supported Flystorage filesystems.

## Installation

Install all the required packages

```bash
npm install --save @flystorage/file-storage @flystorage/multer-storage
```

## Usage

```typescript
import {FileStorage} from '@flystorage/file-storage';
import {FlystorageMulterStorageEngine} from '@flystorage/multer-storage';
import multer from 'multer';

const adapter = createYourAdapter();
const fileStorage = new FileStorage(adapter);

const storage = new FlystorageMulterStorageEngine(
    uploadStorage,
    async (action, _req: express.Request, file: Express.Multer.File) => {
        if (action === 'handle') {
            return file.originalname;
        } else {
            return file.destination;
        }
    }
);

const uploader = multer({storage});
```
npm package: @flyswap/sdk
Description: 🛠 An SDK for building applications on top of Pancakeswap.
Latest version: 1.0.1

# PancakeSwap SDK

Forked from the [Uniswap SDK](https://github.com/Uniswap/uniswap-v2-sdk/commit/a88048e9c4198a5bdaea00883ca00c8c8e582605).

You can refer to the Uniswap SDK documentation [uniswap.org](https://docs.uniswap.org/sdk/2.0.0/).

## Running tests

To run the tests, follow these steps. You must have at least node v10 and [yarn](https://yarnpkg.com/) installed.

First clone the repository:

```sh
git clone https://github.com/pancakeswap/pancake-swap-sdk.git
```

Move into the pancakeswap-sdk working directory

```sh
cd pancakeswap-sdk/
```

Install dependencies

```sh
yarn install
```

Run tests

```sh
yarn test
```

You should see output like the following:

```sh
yarn run v1.22.4
$ tsdx test
 PASS  test/constants.test.ts
 PASS  test/pair.test.ts
 PASS  test/fraction.test.ts
 PASS  test/miscellaneous.test.ts
 PASS  test/entities.test.ts
 PASS  test/trade.test.ts

Test Suites: 1 skipped, 6 passed, 6 of 7 total
Tests:       3 skipped, 82 passed, 85 total
Snapshots:   0 total
Time:        5.091s
Ran all test suites.
✨  Done in 6.61s.
```