open-index/open-npm huggingface dataset:
npm package: @fttx/barcode-scanner
Description: Ionic Native - Native plugins for ionic apps
Author: ionic
Latest version: 5.29.12

<a style="float:right;font-size:12px;" href="http://github.com/ionic-team/ionic-native/edit/master/src/@fttx/plugins/barcode-scanner/index.ts#L92">
  Improve this doc
</a>

# Barcode Scanner

```
$ ionic cordova plugin add phonegap-plugin-barcodescanner
$ npm install @fttx/barcode-scanner
```

## [Usage Documentation](https://ionicframework.com/docs/native/barcode-scanner/)

Plugin Repo: [https://github.com/phonegap/phonegap-plugin-barcodescanner](https://github.com/phonegap/phonegap-plugin-barcodescanner)

The Barcode Scanner Plugin opens a camera view and automatically scans a barcode, returning the data back to you.

Requires Cordova plugin: `phonegap-plugin-barcodescanner`. For more info, please see the [BarcodeScanner plugin docs](https://github.com/phonegap/phonegap-plugin-barcodescanner).

## Supported platforms

- Android
  - BlackBerry 10
  - Browser
  - iOS
  - Windows
npm package: @fttx/mac-screen-capture-permissions
Description: Check and request permission to capture the screen
Author: George Karagkiaouris
Latest version: 1.1.0

# mac-screen-capture-permissions

> Check and request permission to capture the screen on macOS (introduced with 10.15 Catalina)

## Install

```
$ npm install mac-screen-capture-permissions
```

## Usage

See [example.js](https://github.com/karaggeorge/mac-screen-capture-permissions/blob/master/example.js) for usage.

```js
const {
  hasScreenCapturePermission,
  hasPromptedForPermission
} = require('mac-screen-capture-permissions');

hasPromptedForPermission();

// false

hasScreenCapturePermission();

// false

hasPromptedForPermission();

// true


// After accepting the permissions

hasScreenCapturePermission();

// true
```

## API

#### `.hasScreenCapturePermission(): boolean`

Whether or not the current app has the required permissions to record the screen. If this is the first time attempting, a permissions dialog will be shown to the user. Any subsequent calls to `hasScreenCapturePermission` will just check for the permission but won't show a dialog. If the user denied the original request, you need to prompt them to enable the permissions in the System Preferences.

This can be reset by calling `resetPermissions`. The dialog will be shown again after that.

Returns `true` on macOS versions older than 10.15 since this permission wasn't present

#### `.hasPromptedForPermission(): boolean`

**Note:** Only works for Electron apps

Whether or not the permission dialog has been shown to the user. Will be `false` if you haven't called `hasScreenCapturePermission` for this app yet, and `true` otherwise.

This can be reset by calling `resetPermissions`,

Returns `false` on macOS versions older than 10.15 since this permission wasn't present

#### `.resetPermissions({bundleId?: string}): boolean`

Reset the `ScreenCapture` permissions. It will reset the permissions for **all** apps, so use with care. Provide a `bundleId` (i.e. com.apple.Terminal) to reset the permissions only for that app.

Calls `tccutil reset ScreenCapture [bundleId]`.

This will revoke access if it was previously granted, and it will trigger the permissions dialog the next time `hasScreenCapturePermission` is called.

Returns `true` if the command executed successfully and `false` otherwise.

Returns `false` on macOS versions older than 10.15 since this permission wasn't present

#### `.openSystemPreferences(): Promise<void>`

Open the System Preferences in the Screen Recording permissions section under the Security pane.

Only available in Electron apps.

Returns a Promise that resolves when the window is opened

## License

MIT
npm package: @ftvs/admin-ui-plus
Description: 基于 Vue3.x + element-plus + Scss 封装的基础组件库
Latest version: 0.0.20

# admin-ui-plus

基于 Vue3.x + element-plus + Scss 封装的基础组件库

## install

```bash
- npm i @ftvs/admin-ui-plus
- yarn add @ftvs/admin-ui-plus
- pnpm add @ftvs/admin-ui-plus
```

## dev

```bash
yarn docs:dev
```

## build docs

```bash
yarn docs:build
```

## build components

```bash
yarn build:lib
```
npm package: @ftvs/ajax
Description: 多彩宝ajax
Author: 高荣君
Latest version: 1.1.7

# 多彩未来电视ajax网络请求库

基于 axios + @ftvs/utils 封装的网络请求库

#### 多彩未来内网用户

::: tip 前置要求
执行安装命令前务必在项目根目录的 `.npmrc` 文件（没有则新建）里指定 `@ftv` 域下的包去自建 npm 拉取：

```ini
@ftv:registry=https://npm.dcwl.site
```

## install

```bash
- yarn add @ftv/ajax
- pnpm add @ftv/ajax
```

#### 外部开发者

我们将 JSSDK 同步发布到了官方 npm 源，因此对于外部开发者，可使用官方 npm 源安装。

## install

```bash
- yarn add @ftvs/ajax
- pnpm add @ftvs/ajax
```
npm package: @ftvs/cli
Description: Vant CLI 是一个基于 Vite 实现的 Vue 组件库构建工具，通过 Vant CLI 可以快速搭建一套功能完备的 Vue 组件库。
Author: ftv
Latest version: 0.0.2

# Vant CLI

Vant CLI 是一个基于 Vite 实现的 Vue 组件库构建工具，通过 Vant CLI 可以快速搭建一套功能完备的 Vue 组件库。

### 特性

- 基于 Vite 实现，享受愉悦的开发体验
- 提供丰富的命令，涵盖从开发测试到构建发布的完整流程
- 基于约定的目录结构，自动生成优雅的文档站点和组件示例
- 内置 ESLint 校验规则，提交代码时自动执行校验
- 构建后的组件库默认支持按需引入、主题定制、Tree Shaking

### 快速上手

执行以下命令可以快速创建一个基于 Vant CLI 的项目：

```bash
yarn create ftvs-cli-app
```

### 手动安装

```shell
# 通过 npm
npm i @ftvs/cli -D

# 通过 yarn
yarn add @ftvs/cli -D

# 通过 pnpm
pnpm add @ftvs/cli -D

# 通过 Bun
bun add @ftvs/cli -D
```

安装完成后，请将以下配置添加到 package.json 文件中

```json
{
  "scripts": {
    "dev": "ftvs-cli dev",
    "test": "ftvs-cli test",
    "lint": "ftvs-cli lint",
    "build": "ftvs-cli build",
    "prepare": "husky install",
    "release": "ftvs-cli release",
    "build-site": "ftvs-cli build-site"
  },
  "nano-staged": {
    "*.md": "prettier --write",
    "*.{ts,tsx,js,vue,less,scss}": "prettier --write",
    "*.{ts,tsx,js,vue}": "eslint --fix"
  },
  "eslintConfig": {
    "root": true,
    "extends": ["@ftvs"]
  },
  "prettier": {
    "singleQuote": true
  },
  "browserslist": ["Chrome >= 51", "iOS >= 10"]
}
```

## 详细文档

- [命令](https://github.com/vant-ui/vant/tree/main/packages/ftvs-cli/docs/commands.zh-CN.md)
- [配置指南](https://github.com/vant-ui/vant/tree/main/packages/ftvs-cli/docs/config.zh-CN.md)
- [目录结构](https://github.com/vant-ui/vant/tree/main/packages/ftvs-cli/docs/directory.zh-CN.md)
- [更新日志](https://github.com/vant-ui/vant/tree/main/packages/ftvs-cli/changelog.md)
npm package: @ftvs/eslint-config
Description: eslint config of vant
Author: shawyw
Latest version: 4.0.1

# ESLint Config of Vant

## Install

```shell
# with npm
npm i @ftvs/eslint-config -D

# with yarn
yarn add @ftvs/eslint-config -D

# with pnpm
pnpm add @ftvs/eslint-config -D

# with Bun
bun add @ftvs/eslint-config -D
```

## Usage

```json
{
  "extends": ["@ftvs"]
}
```
npm package: @ftvs/media-player
Description: 多彩未来电视播放器
Author: 高荣君
Latest version: 0.0.4

# 多彩未来mediaPlayer


## install

```bash
- yarn add @ftvs/media-player
- pnpm add @ftvs/media-player
```
[查看文档 →](https://ftv-frontend.gogpay.cn/ftvs-media-player/docs/index.html)
npm package: @ftvs/popperjs
Description: Pre-compiled popperjs core
Author: shawyw
Latest version: 0.0.2

# @ftvs/popperjs

@popperjs/core in commonjs format, added Object.assign polyfill.

## Install

```shell
# with npm
npm i @ftvs/popperjs

# with yarn
yarn add @ftvs/popperjs

# with pnpm
pnpm add @ftvs/popperjs

# with Bun
bun add @ftvs/popperjs
```

## Usage

see: https://popper.js.org/

## Refer

issue: http://192.168.7.201:8000/ftv/ftv-cli/issues/7626
npm package: @ftvs/use
Description: Ftvs Composition API
Author: shawyw
Latest version: 0.0.3

# Vant Use

Built-in composition APIs of Vant.

## Install

```shell
# with npm
npm i @ftvs/use

# with yarn
yarn add @ftvs/use

# with pnpm
pnpm add @ftvs/use

# with Bun
bun add @ftvs/use
```