open-index/open-npm huggingface dataset:
npm package: @infotech-tw/info-ui
Description: Infotech UI components
Author: Infotech
Latest version: 0.0.5

# info-ui

This template should help get you started developing with Vue 3 in Vite.

## Recommended IDE Setup

[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin).

## Type Support for `.vue` Imports in TS

TypeScript cannot handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for type checking. In editors, we need [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin) to make the TypeScript language service aware of `.vue` types.

If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a [Take Over Mode](https://github.com/johnsoncodehk/volar/discussions/471#discussioncomment-1361669) that is more performant. You can enable it by the following steps:

1. Disable the built-in TypeScript Extension
    1) Run `Extensions: Show Built-in Extensions` from VSCode's command palette
    2) Find `TypeScript and JavaScript Language Features`, right click and select `Disable (Workspace)`
2. Reload the VSCode window by running `Developer: Reload Window` from the command palette.

## Customize configuration

See [Vite Configuration Reference](https://vitejs.dev/config/).

## Project Setup

```sh
npm install
```

### Compile and Hot-Reload for Development

```sh
npm run dev
```

### Type-Check, Compile and Minify for Production

```sh
npm run build
```

### Run Headed Component Tests with [Cypress Component Testing](https://on.cypress.io/component)

```sh
npm run test:unit:dev # or `npm run test:unit` for headless testing
```

### Run End-to-End Tests with [Cypress](https://www.cypress.io/)

```sh
npm run test:e2e:dev
```

This runs the end-to-end tests against the Vite development server.
It is much faster than the production build.

But it's still recommended to test the production build with `test:e2e` before deploying (e.g. in CI environments):

```sh
npm run build
npm run test:e2e
```

### Lint with [ESLint](https://eslint.org/)

```sh
npm run lint
```
npm package: @infotechnohelp/api-client
Description: \<script> ```js     const api = new Api("<?= \Cake\Routing\Router::url('/', true); ?>", "api/",         "<?= $this->request->getParam('_csrfToken'); ?>");
Author: Infotechnohelp OÜ
Latest version: 1.0.7

## Implementation

\<script>
```js
    const api = new Api("<?= \Cake\Routing\Router::url('/', true); ?>", "api/",
        "<?= $this->request->getParam('_csrfToken'); ?>");

    if (api instanceof Api === false) {
        throw Error('constant `api` is not an instance of `Api`');
    }
```
\</script>

## Send requests 

`getJson(url, successCallback, errorCallback, apiRoot)`

\<script>
```js
    api.getJson("test/get", function(successResponse){
        console.log(successResponse);
    }, function(failureResponse){
        console.log(failureResponse);
    });
```
\</script>

`postJson(url, successCallback, errorCallback, apiRoot)`

\<script>
```js
    api.postJson("test/get", {key: value}, function(successResponse){
        console.log(successResponse);
    }, function(failureResponse){
        console.log(failureResponse);
    });
```
\</script>

## Clone api and set specific path

\<script>
```js
var newApi = api.clone();
        trackerApi.setApiRoot("any/api/path");
```
\</script>
npm package: @infotorg/api-client
Description: API client for node.js and the browser (axios wrapper).
Author: Volodymyr Chumak
Latest version: 1.0.0

# api-client

Promised-based Api Client for node.js and the browser (axios wrapper).
More info about options you can find in [axios docs](https://axios-http.com/docs/intro).

## [API documentation](https://infotorg.github.io/api-client/)

## Installation

```bash
$ npm install @infotorg/api-client
```

## Usage

```javascript
import axios from 'axios';
import { ApiClient } from '@infotorg/api-client';
// or for node.js
// const axios = require('axios');
// const { ApiClient } = require('@infotorg/api-client');

const apiClient = new ApiClient(axios, {
  // Other options you can find in axios docs
  baseURL: 'https://api.example.com',
  headers: {
    'Content-Type': 'application/json',
  },
});

// GET request
const response = await apiClient.get('/users/1');

// POST request
const response = await apiClient.post('/users', {
  name: 'John',
  age: 30,
});

// PUT request
const response = await apiClient.put('/users/1', {
  name: 'John',
  age: 30,
});

// PATCH request
const response = await apiClient.patch('/users/1', {
  name: 'John',
  age: 33,
});

// DELETE request
const response = await apiClient.delete('/users/1');

// HEAD request
const response = await apiClient.head('/users/1');

// OPTIONS request
const response = await apiClient.options('/users/1');
```

## Tests

Tests are written with `jest`. They can be run with `npm`:

```
npm run test
```

##### LICENSE: MIT

##### AUTHOR: [Volodymyr Chumak](https://github.com/coderua)
npm package: @infotorg/build-url
Description: Can build new urls from parameters or fix them.
Author: Volodymyr Chumak
Latest version: 2.0.2

# build-url

Build an URL by joining provided parts and removing trailing slash

## [API documentation](https://infotorg.github.io/build-url/)

## Installation

```bash
npm install @infotorg/build-url
```

## Usage

As a parameter(s) an array with url parts or just strings can be provided.

```javascript
import { buildUrl } from '@infotorg/build-url';

// How url is fixed
const normalizedUrl = buildUrl('https://example.com/');

console.log(normalizedUrl);
// https://example.com

// How url is built from two strings
const normalizedUrl = buildUrl('https://example.com', 'chunk');

console.log(normalizedUrl);
// https://example.com/chunk

// How url is built by joining an array's indexes
const normalizedUrl = buildUrl(['https://example.com', 'chunk']);

console.log(normalizedUrl);
// https://example.com/chunk
```

## Tests

Tests are written with `jest`. They can be run with `npm`:

```shell
npm run test
```

##### LICENSE: MIT

##### AUTHOR: [Lukasz Sitnik](https://github.com/JeraldStarr)
npm package: @infotorg/mask-data-severity-levels
Description: Infotorg mask data severity levels
Author: Volodymyr Chumak
Latest version: 1.0.0

# mask-data-severity-levels

Definitions of severity levels for masking data and shareable constants.

## Installation
```bash
npm install @infotorg/mask-data-severity-levels
```

## Usage
```javascript
const { 
  MASK_DATA_SEVERITY_OPEN,
  MASK_DATA_SEVERITY_PARTIAL,
  MASK_DATA_SEVERITY_STRICT,
} = require('@infotorg/mask-data-severity-levels');

console.log(MASK_DATA_SEVERITY_OPEN); // open
console.log(MASK_DATA_SEVERITY_PARTIAL); // partial
console.log(MASK_DATA_SEVERITY_STRICT); // strict
```

## Tests

Tests are written with `jest`. They can be run with `npm`:

```
npm run test
```

##### LICENSE: MIT
##### AUTHOR: [Volodymyr Chumak](https://github.com/coderua)
npm package: @infotorg/parse-as-boolean
Description: Parse a value as boolean
Author: Volodymyr Chumak
Latest version: 1.0.1

# parse-as-boolean

Parse a value as a boolean

Values that are considered truthy:

- `true`
- `'true'`
- `1`
- `'1'`
- `'yes'`
- `'on'`
- `'enabled'`

Values can be parsed as case-sensitive by setting the second argument to `true`.

## Installation

```bash
$ npm install @infotorg/parse-as-boolean
```

## Usage

```javascript
import { parseAsBoolean } from '@infotorg/parse-as-boolean';
// or for node.js
// const { parseAsBoolean } = require('@infotorg/parse-as-boolean');

// Truthy – Case-insensitive
parseAsBoolean(true); // true
parseAsBoolean('true'); // true
parseAsBoolean('TRUE'); // true
parseAsBoolean(1); // true
parseAsBoolean('1'); // true
parseAsBoolean('yes'); // true
parseAsBoolean('YES'); // true
parseAsBoolean('enabled'); // true
parseAsBoolean('ENABLED'); // true
parseAsBoolean('on'); // true
parseAsBoolean('ON'); // true

// Falsey – Case-insensitive
parseAsBoolean(''); // false
parseAsBoolean(false); // false
parseAsBoolean('false'); // false
parseAsBoolean(0); // false
parseAsBoolean(0.5); // false
parseAsBoolean('0'); // false
parseAsBoolean('no'); // false
parseAsBoolean('on'); // true
parseAsBoolean('off'); // false
parseAsBoolean('disabled'); // false
parseAsBoolean({}); // false

// Truthy – Case-sensitive
parseAsBoolean(true, true); // true
parseAsBoolean('true', true); // true
parseAsBoolean('1', true); // true
parseAsBoolean('yes', true); // true
parseAsBoolean('enabled', true); // true
parseAsBoolean('on', true); // true

// Falsey – Case-sensitive
parseAsBoolean('TRUE', true); // false
parseAsBoolean('YES', true); // false
parseAsBoolean('FALSE', true); // false
parseAsBoolean('ENABLED', true); // false
parseAsBoolean('ON', true); // false
```

## Tests

Tests are written with `jest`. They can be run with `npm`:

```
npm run test
```

##### LICENSE: MIT

##### AUTHOR: [Volodymyr Chumak](https://github.com/coderua)
npm package: @infotorg/parse-csv-as-array
Description: Parse CSV string as an array
Author: Volodymyr Chumak
Latest version: 1.0.0

# parse-csv-as-array

Parse [CSV](https://en.wikipedia.org/wiki/Comma-separated_values) string as an array

## Installation

```bash
$ npm install @infotorg/parse-csv-as-array
```

## Usage

```javascript
import { parseCSVAsArray } from '@infotorg/parse-csv-as-array';
// or for node.js
// const { parseCSVAsArray } = require('@infotorg/parse-csv-as-array');

// Parse CSV string as an array
parseCSVAsArray('x,y,z,1,2,3'); // ['x', 'y', 'z', '1', '2', '3']
parseCSVAsArray(' x , y , z , 1 , 2 , 3 '); // ['x', 'y', 'z', '1', '2', '3']
parseCSVAsArray(['x', 'y', 'z', '1', '2', '3']); // ['x', 'y', 'z', '1', '2', '3']

// Unparsable content
parseCSVAsArray(''); // []
parseCSVAsArray(null); // []
parseCSVAsArray(undefined); // []
parseCSVAsArray({}); // []
parseCSVAsArray(1); // []
parseCSVAsArray(true); // []
parseCSVAsArray(false); // []
parseCSVAsArray(NaN); // []
parseCSVAsArray(Infinity); // []
```

## Tests

Tests are written with `jest`. They can be run with `npm`:

```
npm run test
```

##### LICENSE: MIT

##### AUTHOR: [Volodymyr Chumak](https://github.com/coderua)
npm package: @infowatch/browser-sync-webpack-plugin
Description: BrowserSync and Webpack integration
Author: Valentyn Barmashyn
Latest version: 2.0.1

# [BrowserSync](http://www.browsersync.io/) plugin for [Webpack](http://webpack.github.io/)

Easily use BrowserSync in your Webpack project.

## Install:

```bash
$ npm install --save-dev browser-sync-webpack-plugin
```

With release of 2.0.0 the plugin is expected to be used in Node v4+ environment.
Support for Node v3 and lower was dropped, but you can install and use the plugin version of 1.2.0 in older environments. 

## Usage:

BrowserSync will start only when you run Webpack in [watch mode](http://webpack.github.io/docs/tutorials/getting-started/#watch-mode):

```bash
$ webpack --watch
```

### Basic:

If you're not using Webpack Dev Server, you can make BrowserSync to serve your project.
The setup is pretty easy: just pass the [BrowserSync options](http://www.browsersync.io/docs/options/) to the plugin as the first argument.

In your `webpack.config.js`:

```javascript
const BrowserSyncPlugin = require('browser-sync-webpack-plugin');

module.exports = {
  // ...
  plugins: [
    new BrowserSyncPlugin({
      // browse to http://localhost:3000/ during development,
      // ./public directory is being served
      host: 'localhost',
      port: 3000,
      server: { baseDir: ['public'] }
    })
  ]
}
```

### Advanced:

The advanced usage is about using [Webpack Dev Server](https://github.com/webpack/webpack-dev-server) with BrowserSync in order to use awesome features of both.

To achieve this, BrowserSync offers the [proxy](http://www.browsersync.io/docs/options/#option-proxy) option.
So, basically, you are about to proxy the output from the Webpack Dev Server through BrowserSync to get the best out of both.

In your `webpack.config.js`:

```javascript
const BrowserSyncPlugin = require('browser-sync-webpack-plugin');

module.exports = {
  // ...
  plugins: [
    new BrowserSyncPlugin(
      // BrowserSync options
      {
        // browse to http://localhost:3000/ during development
        host: 'localhost',
        port: 3000,
        // proxy the Webpack Dev Server endpoint
        // (which should be serving on http://localhost:3100/)
        // through BrowserSync
        proxy: 'http://localhost:3100/'
      },
      // plugin options
      {
        // prevent BrowserSync from reloading the page
        // and let Webpack Dev Server take care of this
        reload: false
      }
    )
  ]
}
```

Another plugin options supported are:

* `name` - BrowserSync [instance name](http://www.browsersync.io/docs/api/#api-name)
* `callback` - BrowserSync [instance init callback](http://www.browsersync.io/docs/api/#api-cb).
* `injectCss` - allows BrowserSync to inject changes inplace instead of reloading the page when changed chunks are all CSS files

## Contributing:

Feel free to open issues to propose stuff and participate. Pull requests are also welcome.

## Licence:

[MIT](http://en.wikipedia.org/wiki/MIT_License)
npm package: @infoxen/sdk
Description: 🛠 An SDK for building applications on top of Proxima.
Latest version: 1.0.0

# Uniswap SDK

[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)
[![Actions Status](https://github.com/Uniswap/uniswap-sdk/workflows/CI/badge.svg)](https://github.com/Uniswap/uniswap-sdk)
[![npm version](https://img.shields.io/npm/v/@uniswap/sdk/latest.svg)](https://www.npmjs.com/package/@uniswap/sdk/v/latest)
[![npm bundle size (scoped version)](https://img.shields.io/bundlephobia/minzip/@uniswap/sdk/latest.svg)](https://bundlephobia.com/result?p=@uniswap/sdk@latest)

In-depth documentation on this SDK is available at [uniswap.org](https://uniswap.org/docs/v2/SDK/getting-started/).

## 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/Uniswap/uniswap-sdk.git
```

Move into the uniswap-sdk working directory

```sh
cd uniswap-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.
```
npm package: @infra-sight/sdk
Description: Infra-Sight is an elegant UX focused API for Overwatch.
Latest version: 2.0.0-alpha.0

# Infra Sight

![](https://cdn.aidan.pro/github/infra-sight.png)

---

## Table of Contents

  - [Quick Start](#quick-start)
  - [SDK](#sdk)
    - [`getOverwatchAccount`](#getoverwatchaccount)
    - [`getOverwatchHeroes`](#getoverwatchheroes)
    - [`getOverwatchPlayerIcons`](#getoverwatchplayericons)
    - [`getOverwatchProfile`](#getoverwatchprofile)
    - [`searchOverwatchAccounts`](#searchoverwatchaccounts)
  - [API](#api)
    - [`GET /v2/api/overwatch/accounts/{username}`](#get-v2apioverwatchaccountsusername)
    - [`GET /v2/api/overwatch/heroes`](#get-v2apioverwatchheroes)
    - [`GET /v2/api/overwatch/player-icons`](#get-v2apioverwatchplayer-icons)
    - [`GET /v2/api/overwatch/profiles/{username}`](#get-v2apioverwatchprofilesusername)
    - [`GET /v2/api/overwatch/search/accounts/{username}`](#get-v2apioverwatchsearchaccountsusername)

---

## Quick Start

```shell
npm install @infra-sight/sdk
```

```ts
import InfraSight from '@infra-sight/sdk'

const profile = await InfraSight.getOverwatchProfile('Tracer#3939')

console.log(profile)
```

---

## SDK

### `getOverwatchAccount`

#### Example

```ts
import InfraSight from '@infra-sight/sdk'

const account = await InfraSight.getOverwatchAccount()

console.log(account)
```

Returns `Promise<InfraSightAccount>`


### `getOverwatchHeroes`

#### Example

```ts
import InfraSight from '@infra-sight/sdk'

const heroes = await InfraSight.getOverwatchHeroes()

console.log(heroes)
```

Returns `Promise<OverwatchHeroList>`


### `getOverwatchPlayerIcons`

#### Example

```ts
import InfraSight from '@infra-sight/sdk'

const icons = await InfraSight.getOverwatchPlayerIcons()

console.log(icons)
```

Returns `Promise<InfraSightPlayerIconRecord>`


### `getOverwatchProfile`

#### Example

```ts
import InfraSight from '@infra-sight/sdk'

const profile = await InfraSight.getOverwatchProfile()

console.log(profile)
```

Returns `Promise<InfraSightProfile>`


### `searchOverwatchAccounts`

#### Example

```ts
import InfraSight from '@infra-sight/sdk'

const accounts = await InfraSight.searchOverwatchAccounts()

console.log(accounts)
```

Returns `Promise<InfraSightAccountList>`

---

## API

### `GET /v2/api/overwatch/accounts/{username}`

#### Parameters

  - `platform`
  - `resolution_strategy`


### `GET /v2/api/overwatch/heroes`


### `GET /v2/api/overwatch/player-icons`


### `GET /v2/api/overwatch/profiles/{username}`

#### Parameters

  - `platform`
  - `resolution_strategy`


### `GET /v2/api/overwatch/search/accounts/{username}`
npm package: @infra-x/eslint-config
Description: A shared ESLint config for infra-x projects.
Author: infra-x
Latest version: 0.1.13

# @infra-x/eslint-config

Composable ESLint flat config factory for infra-x projects.

## Installation

```bash
pnpm add -D @infra-x/eslint-config eslint globals
```

## Usage

```typescript
// eslint.config.mts
import { composeConfig } from '@infra-x/eslint-config'

export default composeConfig({
  typescript: { tsconfigRootDir: import.meta.dirname },
  react: true,
  tailwind: true,
  imports: true,
})
```

For multiple config segments (e.g. separate test rules):

```typescript
// eslint.config.mts
import { GLOB_TESTS, composeConfig } from '@infra-x/eslint-config'
import { defineConfig } from 'eslint/config'

const appConfig = defineConfig({
  extends: composeConfig({
    typescript: { tsconfigRootDir: import.meta.dirname },
    imports: true,
    react: true,
    nextjs: true,
  }),
})

const vitestConfig = defineConfig({
  files: GLOB_TESTS,
  extends: composeConfig({
    typescript: { tsconfigRootDir: import.meta.dirname },
    vitest: true,
    unicorn: false,
    stylistic: false,
    depend: false,
  }),
})

export default [...appConfig, ...vitestConfig]
```

Each option accepts `true` (defaults), an options object, or `false` (disable).

## Options

Default-on: `globalIgnores` · `javascript` · `typescript` · `stylistic` · `unicorn` · `depend`

Opt-in:

| Option | Description |
|---|---|
| `react` | React + react-hooks rules; set `vite: true` for react-refresh |
| `nextjs` | Next.js rules |
| `tailwind` | Tailwind CSS class ordering (`entryPoint` defaults to `src/global.css`) |
| `imports` | Import ordering and resolution |
| `a11y` | Accessibility rules |
| `jsdoc` | JSDoc rules |
| `boundaries` | Module boundary enforcement |
| `packageJson` | `package.json` rules |
| `vitest` | Vitest testing rules |
| `storybook` | Storybook rules |
| `oxlint` | Disable ESLint rules already covered by oxlint (requires oxlint to run separately) |

All options support an `overrides` field for custom rule overrides, and most accept a `files` glob array.

## Oxlint Integration

When running oxlint alongside ESLint, enable the `oxlint` option to disable duplicate rules:

```typescript
// uses flat/recommended preset
composeConfig({ oxlint: true })

// generate disabled rules from your oxlint config file
composeConfig({ oxlint: { configFile: './.oxlintrc.json' } })
```
npm package: @infra-x/typescript-config
Description: 共享 TypeScript 配置文件集合。完整使用说明见[根目录 README](../../README.md)。
Latest version: 0.1.6

# @infra-x/typescript-config

共享 TypeScript 配置文件集合。完整使用说明见[根目录 README](../../README.md)。