open-index/open-npm huggingface dataset:
npm package: @hitunes247/unflatten-array
Description: Converts a flat array of objects to a tree like array of objects
Latest version: 2.0.0

# @hitunes/unflatten-array

![npm (scoped)](https://img.shields.io/npm/v/@hitunes247/unflatten-array.svg)
![npm bundle size (scoped)](https://img.shields.io/bundlephobia/min/@hitunes247/unflatten-array.svg)

### As simple as passing your flat array of objects

### Installation

```sh
$ npm install @hitunes247/unflatten-array
```

### Usage

```
const unflatten = require("@hitunes247/unflatten-array");

let array = [{
    id: 620,
    name: 'theh',
    parent_id: 0,
    project_id: 91,
    summary: {
      total_progres: 0,
      task_count: 0
    },
    children: []
  },
  {
    id: 3,
    name: 'Contracts',
    parent_id: 620,
    project_id: 91,
    summary: {
      total_progres: 3,
      task_count: 7
    },
    children: [
      {
        id: 1,
        name: 'Supply Construction Agreement',
        description: '',
        planned_start: '2019-03-18T10:43:31.144Z',
        planned_start_date: '2019-03-18',
        planned_finish: '2019-03-18T10:43:31.144Z',
        planned_finish_date: '2019-03-18',
        actual_start: '2019-04-18T10:43:31.144Z',
        actual_finish: '2019-05-18T10:43:31.144Z',
      }
    ]
  }]

unflatten(array);

```

### parent_id and children are important to make it work

### Todos

- Write MORE Tests

## License

MIT

**Free Software, Hell Yeah!**
npm package: @hitv/p2p-core
Description: P2P loader core functionality
Author: Allex Wang
Latest version: 0.0.12

# @hitv/p2p-core

P2P core engine for p2hls-loader

## Installation

```sh
yarn add @hitv/p2p-core -D
```

## License

[MIT](http://opensource.org/licenses/MIT) Copyright (c) [Allex Wang][1]

[1]: https://iallex.com
npm package: @hitv/p2p-util
Description: Utilities for p2p and hls-loader devel.
Author: allex
Latest version: 1.0.6

# @hitv/p2p-util

Utilities for p2p and hls-loader devel.

## Installation

```sh
yarn add @hitv/p2p-util -D
```

## License

[MIT](http://opensource.org/licenses/MIT) Copyright (c) [Allex Wang][1]

[1]: https://github.com/allex/
npm package: @hitv/ua
Description: Is a simple userAgent parser for develop kit.
Author: allex
Latest version: 1.0.1

# @hitv/ua

> Is a simple userAgent parser for develop kit.

## Installation

```sh
npm i @hitv/ua
```

## Usage

```js
import ua from '@hitv/ua'

console.log(ua)

// =>
{
  "safari": true,
  "version": {
    "major": 9,
    "string": "601.1.46",
    "minor": 0
  },
  "ipad": true,
  "webkit": true,
  "name": "safari",
  "platform": "ipad"
}
```

## License

[MIT](https://allex.github.io/LICENSE.md)
npm package: @hitz-group/rn-use-modal
Description: React hook for showing modals on react-native. Using useModal you can show any component as modal
Author: Shidil Eringa
Latest version: 0.1.8

# @hitz-group/rn-use-modal

React hook for showing modals on react-native. Uses `react-native-modal` under the hood. Show any component as modal with `showModal`

[![codecov](https://codecov.io/gh/hitz-group/rn-use-modal/branch/master/graph/badge.svg?token=PINPV73BX8)](https://codecov.io/gh/hitz-group/rn-use-modal) [![npm](https://img.shields.io/npm/v/@hitz-group/rn-use-modal/latest.svg)](https://www.npmjs.com/package/@hitz-group/rn-use-modal) ![Build](https://github.com/hitz-group/rn-use-modal/workflows/Unit%20Tests%20and%20ESLint/badge.svg)

## Why

- Following recent trends `useModal` fits right in
- There are some libraries already, but few of them allows dynamic content for modals.

## Usage

```js
import { useModal } from '@hitz-group/rn-use-modal';

function ScreenWithModal() {
  const { showModal, closeModal } = useModal();

  const onConfirm = useCallback(() => {
    closeModal();
  }, [closeModal]);

  const showConfirmation = useCallback(() => {
    showModal(<ConfirmationModal onConfirm={onConfirm} />);
  }, [showModal]);

  return <Pressable onPress={showConfirmation}>Confirm Me</Pressable>;
}
```

## ModalProvider

You need to wrap your screen with `ModalProvider` first for `useModal` to work.

```js
function App() {
  return (
    <ModalProvider modalProps={options}>
      <ScreenWithModal />
    </ModalProvider>
  );
}
```

For a list of options [see this page](https://github.com/react-native-community/react-native-modal#available-props)

## Caveats

This module currently uses `react-native-modal` under the hood. Considering life cycle of open source libraries it would be bettor to implement `Modal` from `react-native` directly.
`react-native-modal` was chosen as of now to support web platforms also. This can be done by aliasing `react-native-modal` with `modal-enhanced-react-native-web`

## Development

### Build

Build all projects `yarn build`
Clean build output `yarn clean`
npm package: @hive-intel/sub-menu
Description: intro component
Latest version: 1.0.2

# SubMenu

@hive-intel/sub-menu

intro component

## API

| 参数名      | 说明         | 必填 | 类型   | 默认值 | 备注       |
| ----------- | ------------ | ---- | ------ | ------ | ---------- |
| microAppUrl | 子应用的 url | 是   | string |        |            |
| appMode     | 当前环境     | 是   | string | local  | local:prod |