open-index/open-npm huggingface dataset:
npm package: @lavshah/rrvideo-converter
Description: Convert rrweb session into video formats
Author: Lav Shah
Latest version: 0.1.2

# rrvideo

[中文文档](./README.zh_CN.md)

rrvideo is a tool for transforming the session recorded by [rrweb](https://github.com/rrweb-io/rrweb) into a video.

## Install rrvideo

1. Install [ffmpeg](https://ffmpeg.org/download.html)。
2. Install [Node.JS](https://nodejs.org/en/download/)

## Use rrvideo

### Transform a rrweb session(in JSON format) into a video.

```shell
rrvideo --input PATH_TO_YOUR_RRWEB_EVENTS_FILE
```

Running this command will output a `rrvideo-output.mp4` file in the current working directory.

### Config the output path

```shell
rrvideo --input PATH_TO_YOUR_RRWEB_EVENTS_FILE --output OUTPUT_PATH
```

### Config the replay

You can prepare a rrvideo config file and pass it to CLI.

```shell
rrvideo --input PATH_TO_YOUR_RRWEB_EVENTS_JSON_FILE --config PATH_TO_YOUR_RRVIDEO_CONFIG_FILE
```

You can find an example of the rrvideo config file [here](./rrvideo.config.example.json).
npm package: @lavshah/rrvideo-fix
Description: transform rrweb session into video
Author: yanzhen@smartx.com
Latest version: 0.2.15

# rrvideo

[中文文档](./README.zh_CN.md)

rrvideo is a tool for transforming the session recorded by [rrweb](https://github.com/rrweb-io/rrweb) into a video.

## Install rrvideo

1. Install [ffmpeg](https://ffmpeg.org/download.html)。
2. Install [Node.JS](https://nodejs.org/en/download/)。
3. Run `npm i -g rrvideo` to install the rrvideo CLI。

## Use rrvideo

### Transform a rrweb session(in JSON format) into a video.

```shell
rrvideo --input PATH_TO_YOUR_RRWEB_EVENTS_FILE
```

Running this command will output a `rrvideo-output.mp4` file in the current working directory.

### Config the output path

```shell
rrvideo --input PATH_TO_YOUR_RRWEB_EVENTS_FILE --output OUTPUT_PATH
```

### Config the replay

You can prepare a rrvideo config file and pass it to CLI.

```shell
rrvideo --input PATH_TO_YOUR_RRWEB_EVENTS_JSON_FILE --config PATH_TO_YOUR_RRVIDEO_CONFIG_FILE
```

You can find an example of the rrvideo config file [here](./rrvideo.config.example.json).
npm package: @law-lin/expo-mixpanel-analytics
Description: Mixpanel integration for use with React Native apps built on Expo 39, with time_event support
Author: law-lin
Latest version: 1.6.2

# Expo Mixpanel Analytics

Mixpanel integration for use with React Native apps built on Expo.

Forked from `@bothrs/expo-mixpanel-analytics` to add functionality that simulates Mixpanel's `time_event` function.

## Installation

npm:

```
npm install @law-lin/expo-mixpanel-analytics --save
```

yarn:

```
yarn add @law-lin/expo-mixpanel-analytics -D
```

## Import

Your React Native app's screen resolution, app name, app ID, app version, device information and multiple other parameters will be automatically resolved and sent with each event.

```
import ExpoMixpanelAnalytics from '@law-lin/expo-mixpanel-analytics';
```

## Usage

```
const analytics = new ExpoMixpanelAnalytics("5224da5bbbed3fdeaad0911820f1bf2x");

analytics.identify("13793");

analytics.register({ email: "bob@bob.com" }); // super props sent on every request and persisted in AsyncStorage

analytics.track("Signed Up", { "Referred By": "Friend" });

analytics.people_set({ "$first_name": "Joe", "$last_name": "Doe", "$email": "joe.doe@example.com", "$created": "2013-04-01T13:20:00", "$phone": "4805551212", "Address": "1313 Mockingbird Lane", "Birthday": "1948-01-01" });

analytics.people_set_once({ "First login date": "2013-04-01T13:20:00" });

analytics.people_unset([ "Days Overdue" ]);

analytics.people_increment({ "Coins Gathered": 12 });

analytics.people_append({ "Power Ups": "Bubble Lead" });

analytics.people_union({ "Items purchased": ["socks", "shirts"] });

analytics.people_delete_user();

analytics.time_event("Registered");
analytics.track("Registered", {"Gender": "Female", "Age": 25 })

analytics.reset();

```

## References

https://mixpanel.com/help/reference/http
npm package: @lawallet/prettier-config
Description: LaWallet Prettier config
Author: La Crypta Labs
Latest version: 1.0.0

# `@azz/prettier-config`

> My personal [Prettier](https://prettier.io) config.

## Usage

**Install**:

```bash
$ yarn add --dev @azz/prettier-config
```

**Edit `package.json`**:

```jsonc
{
  // ...
  "prettier": "@azz/prettier-config"
}
```
npm package: @lawchihon/olevod-api
Description: API helper to get info from olevod.com
Author: Chi Hon Law
Latest version: 0.0.3

# olevod-api
API helper to get info from olevod.com


## Installation

```
npm install @lawchihon/olevod-api
```

## Peer Dependencies
- [@johman/helper](https://www.npmjs.com/package/@johman/helper): Joined mini functions to help minimize duplicated coding between projects.
- [axios](https://github.com/axios/axios): Promise based HTTP client for the browser and node.js.
- [cheerio](https://github.com/cheeriojs/cheerio): Fast, flexible, and lean implementation of core jQuery designed specifically for the server.
- [lodash](https://github.com/lodash/lodash): A modern JavaScript utility library delivering modularity, performance & extras.

`Note: Peer dependencies are required to be installed.`

## Documentation
`Note: All functions are returning in promise and optional to pass a custom axios instance`

- `alive`: Check if olevod.com is accessible

```
const alive = await Olevod.alive();
```

```
const alive = await Olevod.alive(axiosInstance);
```

```
const alive = await Olevod.alive({instance: axiosInstance});
```

- `getFilters`: Get the filters that is supported on olevod.com

```
const filters = await Olevod.getFilters();
```

```
const filters = await Olevod.getFilters(false, axiosInstance);
```

```
const filters = await Olevod.getFilters({isAdult: false, instance: axiosInstance});
```

- `getVideos`: Search for videos on olevod.com

`Note: When search applied, typeId will not apply to the search results`

`Note2: 'page' default to be 1`

```
const videos = await Olevod.getVideos(search, typeId, page, order, year, letter, area, language, condition, instance);
```

```
const videos = await Olevod.getVideos({search, typeId, page, order, year, letter, area, language, condition, instance});
```

- `getVideo`: Get the video info base on detailId

```
const video = await Olevod.getVideo(detailId, instance);
```

```
const video = await Olevod.getVideo({detailId, instance});
```

- `getPlayInfo`: Get the play info base on playId

```
const playInfo = await Olevod.getPlayInfo(playId, instance);
```

```
const playInfo = await Olevod.getPlayInfo({playId, instance});
```

### Video format
```
{
    // video detail id
    detailId: String,
    // title of video
    title: String,
    // string of video picture link - Not available when getVideos() without search or typeId
    picture: String,
    // video description - Only available when return from getVideo() and getPlayInfo()
    description: String,
    // array of play info - Only available when return from getVideo()
    playInfos: Array<PlayInfo>
}
```

### Play Info format
```
{
    // play id
    playId: playId,
    // title of the play
    title: String,
    // video url of the play - Only available when return from getPlayInfo()
    videoUrl: String
    // video detail of the play - Only available when return from getPlayInfo()
    detail: Video
}
```

## Testing

```
npm run test
```

## License
[MIT](LICENSE)
npm package: @lawcket/body-parser
Description: Middleware for @lawcket/websocket that parses body information
Author: Chris Sullivan
Latest version: 0.1.1

# @lawcket/body-parser
![Downloads][link-download] ![Version][link-version] ![License][link-license]

Middleware for @lawcket/websocket that parses body information

[link-download]: https://img.shields.io/npm/dt/@lawcket/body-parser.svg
[link-version]: https://img.shields.io/npm/v/@lawcket/body-parser.svg
[link-license]: https://img.shields.io/npm/l/@lawcket/body-parser.svg
npm package: @lawcket/fn
Description: A collection of utils for use in lawcket libs
Author: Chris Sullivan
Latest version: 0.1.1

# @lawcket/fn
![Downloads][link-download] ![Version][link-version] ![License][link-license]

Common utils and functional helpers.

[link-download]: https://img.shields.io/npm/dt/@lawcket/fn.svg
[link-version]: https://img.shields.io/npm/v/@lawcket/fn.svg
[link-license]: https://img.shields.io/npm/l/@lawcket/fn.svg
npm package: @lawcket/publisher
Description: Middleware for @lawcket/websocket injects send method
Author: Chris Sullivan
Latest version: 0.1.4

# @lawcket/publisher
![Downloads][link-download] ![Version][link-version] ![License][link-license]

Middleware for @lawcket/websocket injects publish method. 

# Installation
`yarn add @lawcket/publisher`

or 

`npm install @lawcket/publisher`

### Manual client building 
In normal use-cases you shouldn't need to manually build the client. @lawcket/websockets already creates a publish function once the client is connected. However, in case you want to reconstruct publish communications, the following example illustrates how to. 

Example:

```
// non-ES6
// const { builder } = require('@lawcket/publisher');

// ES6
import { builder } from '@lawcket/publisher';

// create the communication client
const client = builder({ 
    stage: 'test',
    domainName: 'test.execute-api.us-west-2.amazonaws.com',
    connectionId: 'testId',
});

// send a message 
client({ foo: 'bar' }).then((res) => console.log('yay', res));
```

[link-download]: https://img.shields.io/npm/dt/@lawcket/publisher.svg
[link-version]: https://img.shields.io/npm/v/@lawcket/publisher.svg
[link-license]: https://img.shields.io/npm/l/@lawcket/publisher.svg
npm package: @lawcket/react-websocket
Description: A slim React websocket implementation
Author: Chris Sullivan
Latest version: 0.2.2

![npm downloads total](https://img.shields.io/npm/dt/@lawcket/react-websocket.svg) ![npm version](https://img.shields.io/npm/v/@lawcket/react-websocket.svg) ![npm license](https://img.shields.io/npm/l/@lawcket/react-websocket.svg)

# @lawcket/react-websocket
A slim Websocket implementation for React 16+. The libray uses the standard browser WebSocket so 'should' be supported in React-Native.

### Installation
```
npm install --save @lawcket/react-websocket
```
or
```
yarn add @lawcket/react-websocket
```

### Usage
Example:
```
import React, { useState } from 'react';
import Websocket from '@lawcket/react-websocket';

const Messages = () => {
  const [messages, addMessage] = useState([]);
  return (
    <Websocket 
      url='wss://...' 
      retry
      onOpen={({ send }) => console.log('open')}
      onClose={({ code, reason }) => console.log('closed', code, reason)}
      onMessage={({ send, data }) => console.log('message', data)}
      onError={(error) => console.log('error', error)} >
      {({ send, close }) => {
        return (
            <pre>{JSON.stringify(messages, null, 2)}</pre>
        );
      }}
    </Websocket>
  );
}
```

### PropTypes
|Name|Type|Description | Default|
|-----|-----|-----|---|
| url | string | The websocket url to connect to | |
| protocol | string | The protocol for the websocket to use | |
| retry | boolean | If an error occurs, should it reconnect | true | 
| onOpen | function | Notifies when the connection has been opened | |
| onMessage | function | Notifies when an incoming message has been received | |
| onClose | function | Notifies the connection was closed | |
| onError | function | Notifies of an error with the connection, will close the connection | |

### onOpen
|Parameter|Type|Description |
|-----|-----|-----|
| send | function(any) | A function to send data to the server | 

### onMessage
|Parameter|Type|Description |
|-----|-----|-----|
| data | any | Incoming message (usually stringified JSON data) |
| send | function(any) | A function to send data to the server | 
    
### onError
|Parameter|Type|Description |
|-----|-----|-----|
| error | Error | The error that occured during connection or usage |


### onClose

Reference: [Close codes & reasons](https://developer.mozilla.org/en-US/docs/Web/API/CloseEvent)

|Parameter|Type|Description |
|-----|-----|-----|
| code | number | The close code sent by the server |
| reason | string | The reason the connection was closed |