open-index/open-npm huggingface dataset:
npm package: @gw2/markup-unified
Description: Unified processor for Guild Wars 2 Markup
Author: darthmaim
Latest version: 1.0.1

# @gw2/markup-unified

This package contains a collection of [unified](https://unifiedjs.com/) plugins that combine the parser and converter for easy integration into unified-based processing pipelines.


## Usage

### Parsing

Use the `@gw2/markup-unified/parse` plugin to parse Guild Wars 2® markup into an AST within a unified processing pipeline.

```ts
import { unified } from 'unified';
import { gw2MarkupParse } from '@gw2/markup-unified/parse';

const ast = unified()
  .use(gw2MarkupParse)
  .processSync('Hello <c=@example>world</c>!');
```

### Rehype

Use the `@gw2/markup-unified/rehype` plugin to convert a Guild Wars 2® markup AST into HAST (Hypertext Abstract Syntax Tree) for further processing with rehype.

```ts
import { unified } from 'unified';
import { gw2MarkupParse } from '@gw2/markup-unified/parse';
import { gw2MarkupRehype } from '@gw2/markup-unified/rehype';
import rehypeStringify from 'rehype-stringify'

const html = unified()
  .use(gw2MarkupParse)
  .use(gw2MarkupRehype[, options])
  .use(rehypeStringify)
  .processSync('Hello <c=@example>world</c>!');
```

See [`@gw2/markup-to-hast`](../to-hast/) for available options for the `gw2MarkupRehype` plugin.

### Stringifying

Use the `@gw2/markup-unified/stringify` plugin to convert a Guild Wars 2® markup AST back into markup within a unified processing pipeline.

```ts
import { unified } from 'unified';
import { gw2MarkupParse } from '@gw2/markup-unified/parse';
import { gw2MarkupStringify } from '@gw2/markup-unified/stringify';

const markup = unified()
  .use(gw2MarkupParse)
  .use(gw2MarkupStringify)
  .processSync('Hello <c=@example>world</c>!');
// => 'Hello <c=@example>world</c>!'
```

### Stripping

Use the `@gw2/markup-unified/strip` plugin to convert a Guild Wars 2® markup AST into plain text within a unified processing pipeline.

```ts
import { unified } from 'unified';
import { gw2MarkupParse } from '@gw2/markup-unified/parse';
import { gw2MarkupStrip } from '@gw2/markup-unified/strip';

const text = unified()
  .use(gw2MarkupParse)
  .use(gw2MarkupStrip)
  .processSync('Hello <c=@example>world</c>!');
// => 'Hello world!'
```


## License

This package is licensed under the [MIT License](../LICENSE).
npm package: @gw2api/fetch
Description: Tiny wrapper around fetch that returns type-safe responses
Latest version: 0.4.2

# `@gw2api/fetch`

This package provides a tiny wrapper around native fetch to call the Guild Wars 2 API that returns typesafe responses.

## Usage

```ts
import { fetchGw2Api } from '@gw2api/fetch';

const item = await fetchGw2Api('/v2/items/1234');
// -> { id: number, name: string, ... }
```

## Installation

```sh
npm i @gw2api/fetch
```

## Contributing

See [parent readme](../../README.md#contributing).

## License

Licensed under the [MIT License](./LICENSE).
npm package: @gw2api/types
Description: TypeScript types for all datastructures used by the Guild Wars 2 API
Latest version: 0.0.41

# `@gw2api/types`

TypeScript types for all datastructures used by the Guild Wars 2 API.

## Usage

You can use this library to add strong types when working with the Guild Wars 2 API and not using `@gw2api/fetch` or `@gw2api/client`, for example when using your own api client, working with data from a database, or writing helper functions.

```ts
import type { Gw2Api, EndpointType } from '@gw2api/types';

function getItemName(item: Gw2Api.V2.Item) {
  return item.name;
}

type ItemEndpointResponse = EndpointType<'/v2/items?ids=1,2,3'>;
// -> Array<{ id: number, name: string, ... }>
```

## Installation

```sh
npm i @gw2api/types
```

## Contributing

See [parent readme](../../README.md#contributing).

## License

Licensed under the [MIT License](./LICENSE).
npm package: @gw2efficiency/game-data
Description: Additional game data that the API does not provide
Author: queicherius
Latest version: 0.1.74

# Game Data (WIP)

Additional game data that the API does not provide.

You should likely not use this yet, because it will have breaking versions until 1.0.

## Usage

The following two import forms are supported:

- CommonJS: `const mountSkinData = require('@gw2efficiency/game-data/mounts/skins')`
- ES Modules: `import mountSkinData from '@gw2efficiency/game-data/mounts/skins'`

## Data

- `@gw2efficiency/game-data/commerce/blacklist`: A list of items that are in the commerce API but not actually tradable
- `@gw2efficiency/game-data/home/cats`: Additional information about home cats
- `@gw2efficiency/game-data/home/nodes`: Additional information about home nodes
- `@gw2efficiency/game-data/items/categories/cosmetic-auras`: Which items are categorized as cosmetic auras
- `@gw2efficiency/game-data/mounts/skins`: Additional information about mount skins

## Source Structure

The directory structure shows what type of data it is (for example `mounts/skins`).
In each directory, there are the following files:

- `data.ts` - The data for this type
- `test.ts` - Tests that parse `data.ts` and validate if the content is valid
- `generate.ts` - Some way to generate `data.ts` entirely or partially (if applicable)

## Publishing a new version

```sh
sh publish-data.sh
```
npm package: @gw2treasures/eslint-config
Description: ESLint config for gw2treasures
Author: darthmaim
Latest version: 0.2.1

# `@gw2treasures/eslint-config`

Common ESLint configs for the [GW2Treasures](https://github.com/GW2Treasures) org.


## Usage

### Common (Typescript)
```json
{
  "extends": ["@gw2treasures/eslint-config"]
}
```

### React

Also includes the common config

```json
{
  "extends": ["@gw2treasures/eslint-config/react"]
}
```


## Installation

```
npm i -D @gw2treasures/eslint-config
```


## License

**@gw2treasures/eslint-config** is licensed under the [MIT License](./LICENSE).
npm package: @gw2treasures/eslint-plugin-nextjs
Description: ESLint plugin with custom rules for Next.js
Author: darthmaim
Latest version: 0.1.3

# `@gw2treasures/eslint-plugin-nextjs`

ESLint plugin with custom rules for Next.js.

## Useage

```json
{
  "plugins": ["@typescript-eslint", "@gw2treasures/nextjs"],
  "overrides": [{
    "files": ["**/page.tsx"],
    "rules": {
      "@gw2treasures/nextjs/require-metadata": "warn"
    }
  }]
}

```

## Installation

```
npm i -D @gw2treasures/eslint-plugin-nextjs
```

## License

**@gw2treasures/eslint-plugin-nextjs** is licensed under the [MIT License](./LICENSE).
npm package: @gw2treasures/helper
Description: gw2treasures.com utility library
Author: darthmaim
Latest version: 0.0.6

# `@gw2treasures/helper`

This is a utility library for gw2treasures.com.

## Installation

```
npm i @gw2treasures/helper
```

## License

**@gw2treasures/helper** is licensed under the [MIT License](./LICENSE).
npm package: @gw2treasures/publish-package
Description: gw2treasures.com publish package script
Author: darthmaim
Latest version: 0.1.0

# `@gw2treasures/publish-package`

This is a utility library for gw2treasures.com to publish packages from GitHub Actions.

## Installation

```
npm i @gw2treasures/publish-package
```

## License

**@gw2treasures/publish-package** is licensed under the [MIT License](./LICENSE).
npm package: @gw2treasures/tsconfig
Description: Common tsconfig files for gw2treasures projects
Author: darthmaim
Latest version: 0.0.1

# `@gw2treasures/tsconfig`

Common tsconfig files for gw2treasures projects.

## Useage

```json
{
  "extends": "@gw2treasures/tsconfig/base",
  "compilerOptions": {
    // ...
  },
}

```

## Installation

```
npm i @gw2treasures/tsconfig
```

## License

**@gw2treasures/tsconfig** is licensed under the [MIT License](./LICENSE).
npm package: @gwack/js
Description: Frontend library for Gwack
Author: Fathi Helmi
Latest version: 0.1.1

# @gwack/js

Frontend Vuejs-based library for [Gwack](https://github.com/Gwack-Framework/core) utilities and auto-imports.

## Installation

```bash
npm install @gwack/js
```

## License

[MIT](./LICENSE)
npm package: @gwansikk/server-chain
Description: The server-chain is a simple and lightweight HTTP Request library.
Author: gwansikk
Latest version: 0.5.7
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

<div align="center">

<h1>⛓️ server-chain</h1>
<p><b>A Simple, Lightweight and Easy-to-Use Extension Library for Fetch API.</b></p>

[![npm version](https://img.shields.io/npm/v/@gwansikk/server-chain?logo=npm)](https://www.npmjs.com/package/@gwansikk/server-chain)
[![npm downloads](https://img.shields.io/npm/dt/@gwansikk/server-chain?logo=npm)](https://www.npmjs.com/package/@gwansikk/server-chain)
[![npm bundle size](https://img.shields.io/bundlephobia/min/@gwansikk/server-chain?logo=npm)](https://www.npmjs.com/package/@gwansikk/server-chain)
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/119ff7105f9c4e47bd57e43606850e59)](https://app.codacy.com/gh/gwansikk/server-chain/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)

[English](./README.md)
&nbsp;&nbsp;•&nbsp;&nbsp;
[한국어](./README-ko_kr.md)

</div>

## Installation

- NPM

```bash
npm i @gwansikk/server-chain
```

- Yarn

```bash
yarn add @gwansikk/server-chain
```

# Usage

## Instance

```js
const server = ServerChain({
  key: 'INSTANCE',
  baseURL: 'https://jsonplaceholder.typicode.com',
});

server.get({ url: 'posts/1' }).then(data => console.log(data));
```

## Interceptor

```js
const server = ServerChain({
  key: 'INTERCEPTOR',
  baseURL: 'https://jsonplaceholder.typicode.com',
  interceptors: {
    request: request => {
      console.log('** request interceptor **');
      // You need to modify the request and return the modified request.
      // For example, you can add a specific header to the request or modify the URL.
      request.headers = {
        ...request.headers,
        Authorization: 'Bearer YOUR_ACCESS_TOKEN',
      };
      return request;
    },
    response: response => {
      console.log('** response interceptor **');
      // You need to modify the response and return the modified response.
      return response;
    },
    error: response => {
      console.log('** error interceptor **');
      // You need to modify the error response and return the modified response.
      return response;
    },
  },
});
```

# Roadmap

The list below is a roadmap to get to version 1.0.

- [x] Automatic JSON Conversion
- [x] Instance Creation
- [x] Global Settings
- [x] Request and Response Interceptors
- [ ] Error Status Handling
- [ ] Request Cancellation
- [ ] Progress Bar/Loading Indicator

## Contributing

Information describing how to contribute can be found in the file.  
[CONTRIBUTING.md](./CONTRIBUTING.md)