open-index/open-npm huggingface dataset:
npm package: @h4md1/instagram-data-extractor
Description: A TypeScript library for extracting post data from Instagram
Latest version: 0.2.0

# Instagram Data Extractor

A TypeScript library for extracting post data from Instagram, including descriptions, author information, and media (images/videos).

## Installation

```bash
npm install @h4md1/instagram-data-extractor
# or
yarn add @h4md1/instagram-data-extractor
```

## Usage

```typescript
import { InstagramExtractor } from '@h4md1/instagram-data-extractor';

async function getPostData() {
  try {
    const postData = await InstagramExtractor.extractPost('shortcode');
    console.log('Post description:', postData.description);
    console.log('Author:', postData.author.username);
    console.log('Media URL:', postData.media.url);
  } catch (error) {
    console.error('Failed to extract post:', error);
  }
}
```

## API

### InstagramExtractor.extractPost(shortcode: string, config?: RequestConfigType)

Extracts data from an Instagram post.

#### Parameters

- `shortcode`: The Instagram post shortcode (found in the post URL)
- `config`: Optional request configuration (extends RequestInit)

#### Returns

Returns a Promise that resolves to an InstagramPostData object:


## Error Handling

The library throws errors in the following cases:
- Network errors during the API request
- Invalid or missing shortcode
- Post not found
- API rate limiting

Make sure to wrap the `extractPost` call in a try-catch block to handle potential errors.

## License

MIT

## CLI Usage

You can extract Instagram post data directly from the command line:

### Using npx

```sh
npx @h4md1/instagram-data-extractor@latest extract <shortcode>
```

### Using node

```sh
node dist/cli.js extract <shortcode>
```

Replace `<shortcode>` with the Instagram post shortcode (e.g., `DJ_1LHjIUKb`).

## Credits

This package is heavily inspired by [riad-azz/instagram-video-downloader](https://github.com/riad-azz/instagram-video-downloader).
npm package: @h4nsolo/node-rcon-sogebot
Description: Modified Node-Rcon Package for Sogebot
Author: MindForger / H4nSolo
Latest version: 1.0.3

# node-rcon

[![npm](https://img.shields.io/npm/v/rcon.svg)](https://www.npmjs.com/package/rcon)

node-rcon is a simple library for connecting to RCON servers in node.js.
It implements the protocol used by Valve's Source and GoldSrc engines,
as well as many other game servers.

It was originally created to connect to Minecraft's RCON server.

## Installation

npm:

    $ npm i @h4nsolo/node-rcon-sogebot

## Usage

See [`examples/stdio.js`](https://github.com/pushrax/node-rcon/blob/master/examples/stdio.js) for a simple example.

Some games use TCP and some use UDP for their RCON implementation. To tell
node-rcon which protocol to use, pass it an options object like so:

```javascript
var options = {
  tcp: false,       // false for UDP, true for TCP (default true)
  challenge: false  // true to use the challenge protocol (default true)
};
client = new Rcon(host, port, password, options);
```

Here's a non-exhaustive list of which games use which options:

| Game              | Protocol  | Challenge |
| :---------------- | :-------- | :-------- |
| Any Source game   | TCP       | N/A       |
| Minecraft         | TCP       | N/A       |
| Any GoldSrc game  | UDP       | Yes       |
| Call of Duty      | UDP       | No        |

Source games include CS:S, CS:GO, TF2, etc. GoldSrc games include CS 1.6, TFC,
Ricochet (lol), etc.

If there's a game you know uses a certain protocol, feel free to submit a pull
request.

Please submit a bug report for any game you try that doesn't work!

## Events

The connection emits the following events:

- .emit('auth')

This is sent in response to an authentication request that was successful.

- .emit('end')

The connection was closed from any reason

- .emit('response', str)

There was a response returned to a command/message sent to the server

- .emit('server', str)

There was a message from the server that was not a response to a command or an auth failiure.

- .emit('error', error)

There was an error, usually an authentication failure.
npm package: @h4nyu/react-native-zebra-rfid
Description: ## Getting started
Author: Xinyuan Yao
Latest version: 0.1.1-rc0.1


# react-native-zebra-rfid

## Getting started

`$ npm install react-native-zebra-rfid --save`

### Mostly automatic installation

`$ react-native link react-native-zebra-rfid`

### Manual installation

#### Android

1. Open up `android/app/src/main/java/[...]/MainActivity.java`
  - Add `import com.reactlibrary.RNZebraRfidPackage;` to the imports at the top of the file
  - Add `new RNZebraRfidPackage()` to the list returned by the `getPackages()` method
2. Append the following lines to `android/settings.gradle`:
  	```
  	include ':react-native-zebra-rfid'
  	project(':react-native-zebra-rfid').projectDir = new File(rootProject.projectDir, 	'../node_modules/react-native-zebra-rfid/android')
  	```
3. Insert the following lines inside the dependencies block in `android/app/build.gradle`:
  	```
      compile project(':react-native-zebra-rfid')
  	```
## Usage
```javascript
import RNZebraRfid from 'react-native-zebra-rfid';

// TODO: What to do with the module?
RNZebraRfid;
```
npm package: @h4x/common
Description: Common HAX
Author: JohnyCilohokla
Latest version: 0.4.51

# @h4x/common

**@h4x/common** is a Typescript/JavaScript library that provides a lot of useful helpers without extending any built-in objects. It is mainly used in other **@h4x/*** packages, but it is designed as a universal package that can be used anywhere, including in the browser(with few exports disabled).

The packages doesn't have any dependencies, it does have devDependencies that are used during the development of the package. All of the variables, classes and functions are strictly typed and fully tested.

## Node

The export for node is done using typescript compiler with `"es2015"` target, typing files are exported along side of JavaScript files and are setup in the package.json so they should just work without the need to download external typings.

## Browser

The export for the browser is done using rollup using the esm format (es module). This format works in both rollup and webpack. The export includes a source map file and typings are provided by the main export. The exports are exposed on the package using both `"jsnext:main"` and `"module"`.
npm package: @h5p-hub-mirror/h5p-flashcards
Description: An unofficial mirrored version of the distribution files of the H5P library H5P.Flashcards from the H5P Hub
Author: Joubel
Latest version: 1.5.18

H5P Flashcards
==========

Create cards where the user has to guess the answer.

## License

(The MIT License)

Copyright (c) 2012-2014 Joubel AS
 
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
 
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
 
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
npm package: @h5plus/api
Description: Common API for html5
Author: cwb
Latest version: 0.4.2

# Api

> `与设备无关的常用api`，[文档](https://232003894.github.io/h5plus-doc/$plus.html)

## 安装

```shell
npm install @h5plus/api --save
yarn add @h5plus/api
```

## 基本使用

```javascript
import '@h5plus/api'
```

## 参考

- [decimal.js](https://github.com/MikeMcl/decimal.js)
- [accounting.js](https://github.com/openexchangerates/accounting.js)
- [validator.js](https://github.com/chriso/validator.js)
- [color](https://github.com/Qix-/color)
- [qs](https://github.com/ljharb/qs)
- [linqjs](https://github.com/joaom182/linqjs)
npm package: @h5plus/bus
Description: 基于Vue的事件总线
Author: cwb
Latest version: 0.0.5

# bus

> `基于Vue的事件总线`

## 安装

```shell
npm install @h5plus/bus --save
# or
yarn add @h5plus/bus
```

## 使用

```js
import Vue from 'vue'
import bus from '@h5plus/bus'
Vue.use(bus)
```

### 示例

```javascript
export default {
  name: 'home',
  bus: {
    // 自定义事件
    on: {
      test() {
        this.count++
        this.clg(this.count)
      }
    },
    // 自定义事件，但是只触发一次
    once: {
      onceTest(o) {
        this.msg = o.text
        this.clg(this.msg)
      }
    }
  },
  data() {
    return {
      msg: '',
      count: 0
    }
  },
  mounted() {
    // 触发总线上的事件
    this.$bus.emit('test')
    this.$bus.emit('onceTest', { text: 'onceTest abc ' + this.count })
  },
  methods: {
    clg(m = '') {
      console.log('[' + new Date().toLocaleTimeString() + '] ' + m)
    }
  }
}
```
npm package: @h5plus/core
Description: HTML5+ App for Vue.js
Author: cwb
Latest version: 1.0.10

# Plus

> `设备相关的常用api`，[文档](https://232003894.github.io/h5plus-doc/$plus.html)


### 安装

```bash
npm install @h5plus/core --save

yarn add @h5plus/core
```

### 基本使用

```javascript
import Vue from 'vue'
import plus from '@h5plus/core'
Vue.use(plus)
```

> `其方法中的this指向组件`

#### - event Vue 选项

`Events模块管理客户端事件，包括系统事件，如扩展API加载完毕、程序前后台切换等。`

1.  "plusready": 扩展 API 加载完成事件
1.  "pause": 运行环境从前台切换到后台事件
1.  "resume": 运行环境从后台切换到前台事件
1.  "netchange": 设备网络状态变化事件
1.  "newintent": 新意图事件
1.  "plusscrollbottom": 窗口滚动到底部事件
1.  "error": 页面加载错误事件
1.  "background": 应用切换到后台运行事件
1.  "foreground": 应用切换到前台运行事件
1.  "trimmemory": 应用需要清理内存事件
1.  "splashclosed": 应用启动界面已关闭事件

#### - listener Vue 选项

`用于监听自定义的事件广播`

#### - $api

> `全局window中扩展$api，包含常用api，与设备无关的`

#### - $plus

> `全局window中扩展$plus，包含设备相关的api`

#### - 示例

```javascript
export default {
  name: 'app',
  // Events模块管理客户端事件，包括系统事件，如扩展API加载完毕、程序前后台切换等。
  // "plusready": 扩展API加载完成事件
  // "pause": 运行环境从前台切换到后台事件
  // "resume": 运行环境从后台切换到前台事件
  // "netchange": 设备网络状态变化事件
  // "newintent": 新意图事件
  // "plusscrollbottom": 窗口滚动到底部事件
  // "error": 页面加载错误事件
  // "background": 应用切换到后台运行事件
  // "foreground": 应用切换到前台运行事件
  // "trimmemory": 应用需要清理内存事件
  // "splashclosed": 应用启动界面已关闭事件
  event: {
    // plusready，设备加载完成
    plusready() {
      console.log('test组件 设备加载完成')
    }
  },
  // 自定义窗体监听选项
  listener: {
    // “customEvent”为事件名称
    customEvent(e) {
      // e.detail：事件传递的数据
      alert('test:' + JSON.stringify(e.detail))
    }
  },
  methods: {
    // 广播消息
    send: function() {
      $plus.msg.send('customEvent', { a: 1 }, { self: true })
    }
  }
}
```

### 自定义扩展

```javascript
import Vue from 'vue'
import plus from 'h5pa-vue'
Vue.use(plus, {
  // 全局指定hbuild的错误页地址
  errorPage: '/error.html',
  // 是否需要模拟
  isSim: true
})
```

### 参考

- [Vue2 中文](https://cn.vuejs.org/v2/guide/index.html)
- [html5plus](http://www.html5plus.org/doc/h5p.html)
npm package: @h5plus/img-ui
Description: 跟图像有关的组件
Author: cwb
Latest version: 0.1.0

# img-ui

> `跟图像有关的组件`

## 安装

```shell
npm install @h5plus/img-ui --save
# or
yarn add @h5plus/img-ui
```

## 使用

### QR(二维码组件)

```js
// in xxx.vue文件
import { qr } from '@h5plus/img-ui'
export default {
  ...
  components: {
    qr
  },
  ...
}
```

或者

```js
// in entry.js
import { qr } from '@h5plus/img-ui'
Vue.use(qr)
```

```html
<qr
  value="Hello world!"
  :size="300"
  level="H"
  bgColor="#FFFFFF"
  fgColor="#000000"
  type="img"
  style="text-align: right; padding-right: 5px;"
></qr>
```

### html2img(html 元素保存为图片)

```js
import { html2img } from '@h5plus/img-ui'
export default {
  ...
  methods: {
    plusMode: function(s) {
      // 设备html5+模式下（需要引用"@h5plus/core"包才行，如果项目已经引用了就忽略）,直接保存到系统相册了
      // 简洁参数(dom元素)
      html2img(document.getElementById('main'))
      // 完整参数(3个参数)
      // dom元素：需要转换为图片的dom,必填,dom类型
      // 图片名称：保存后图片名称,仅在设备模式下需要,默认值:'已保存图片到相册中',非必填,string类型
      // 提示文字：保存成功的提示文字,仅在设备模式下需要,默认值:'_img_' + Date.parse(new Date()) + '.jpg',非必填,string类型
      html2img(document.getElementById('main'),'img_' + Date.parse(new Date()) + '.jpg','已保存图片到相册中')
    },
    htmlMode: function(s) {
      // 非设备模式下，
      html2img(document.getElementById('main')).then(function(canvas) {
         document.body.appendChild(canvas)
      })
    }
  }
  ...
}
```
npm package: @h5plus/touch
Description: 基于Vue的touch插件
Author: cwb
Latest version: 0.0.6

# touch

> `基于Vue的touch插件`，参考了 kim-vue-touch

## 安装

```shell
npm install @h5plus/touch
# or
yarn add @h5plus/touch
```

## 使用

```js
import vueTouch from '@h5plus/touch'

Vue.use(vueTouch)
// 或者 Vue.use(vueTouch, 1000)
```

- touch 提供了点击、长按、左滑、右滑、上滑、下滑等事件，
- 当你不需要传参时可以通过 v-tap="vueTouch"的形式调用方法，
- 当你需要传参时 v-tap="(e)=>vueTouch('点击',e)"的方式调用，e 是 event 对象
- 当指令搭配 v-for 使用时，一定要确保 key 值的唯一性，否则不能保证数据刷新之后事件被重新绑定（参考 vue 就地复用机制）

```html
<template>
  <div class="box"
    v-tap="(e)=>vueTouch('点击',e)"
    v-longtap="(e)=>vueTouch('长按',e)"
    v-swipeleft="(e)=>vueTouch('左滑',e)"
    v-swiperight="(e)=>vueTouch('右滑',e)"
    v-swipeup="(e)=>vueTouch('上滑',e)"
    v-swipedown="(e)=>vueTouch('下滑',e)"
  >
  </div>
</template>
<script>
export default {
  name: 'App',
  data () {
    return {
      name:'touch',
    }
  },
  methods:{
    vueTouch:function(txt,e){
      this.name = txt;
    }
  }
}
</script>
```

## 参考

- [kim-vue-touch](https://github.com/904790204/vue-touch)