open-index/open-npm huggingface dataset:
npm package: @pezkuwi/types
Description: Implementation of the Parity codec
Author: PezkuwiChain
Latest version: 16.5.36

# @pezkuwi/types

Implementation of the types and their (de-)serialisation via SCALE codec. On the Rust side, the codec types and primitive types are implemented via the [parity-codec](https://github.com/pezkuwichain/parity-codec).
npm package: @pezkuwi/ui-settings
Description: Manages app settings
Author: Jaco Greeff
Latest version: 3.17.2

# @pezkuwi/ui-settings

Manages app settings including endpoints, themes and prefixes

## Usage Examples

User preferences are set as a settings object in the browser's local storage.

```js
import settings from '@pezkuwi/ui-settings';

render () {
  // get api endpoint for the selected chain
  const WS_URL = settings.apiUrl();

  // get the selected il8n language
  const language = settings.il8nLang();

  // get all available il8n languages
  const languages = settings.availableLanguages();

  // update settings
  const updatedSettings = {
    ...settings,
    i18nLang: 'Arabic'
  }
  settings.set(updatedSettings);

  // NOTE: API currently does not handle hot reconnecting properly,
  so you need to manually reload the page after updating settings.
  window.location.reload();
}
```

## Used by

Apps that currently use the settings package

* [pezkuwichain/apps](https://www.github.com/pezkuwichain/apps)
* [paritytech/substrate-light-ui](https://github.com/paritytech/substrate-light-ui)
npm package: @pezkuwi/util
Description: A collection of useful utilities for @pezkuwi
Author: Dijital Kurdistan Tech Institute
Latest version: 14.0.25

# @pezkuwi/util

Various useful utility functions that are used across all projects in the [@pezkuwi](https://pezkuwi.js.org) namespace. It provides utility functions with additional safety checks, allowing not only for consistent coding, but also reducing the general boilerplate.

## Usage

Installation -

```
yarn add @pezkuwi/util
```

Functions can be imported directly from the package, e.g.

```js
import { isHex } from '@pezkuwi/util';
```
npm package: @pezkuwi/util-crypto
Description: A collection of useful crypto utilities for @pezkuwi
Author: Dijital Kurdistan Tech Institute
Latest version: 14.0.25

# @pezkuwi/util-crypto

Various useful cyrpto utility functions that are used across all projects in the [@pezkuwi](https://pezkuwi.js.org) namespace. It provides utility functions with additional safety checks, allowing not only for consistent coding, but also reducing the general boilerplate.

## Usage

Installation -

```
yarn add @pezkuwi/util-crypto
```

Functions can be imported as follows:

```js
import { mnemonicGenerate } from '@pezkuwi/util-crypto';
```
npm package: @pezkuwi/vanitygen
Description: A vanity address generator for Pezkuwichain
Author: Pezkuwichain Team
Latest version: 1.0.1

# @pezkuwi/vanitygen

A CLI vanity address generator for Pezkuwichain

> Forked from [@polkadot/vanitygen](https://github.com/polkadot-js/tools) and adapted for Pezkuwichain

## Installation

```bash
npm install -g @pezkuwi/vanitygen
```

or

```bash
yarn global add @pezkuwi/vanitygen
```

## Usage

```bash
pezkuwi-vanitygen --match cook13 --mnemonic --network pezkuwi --type sr25519
```

### Options

- `--match <pattern>` - The pattern to match at the start of the address
- `--mnemonic` - Generate using a mnemonic (slower but recoverable)
- `--network <network>` - Network prefix: bizinikiwi, pezkuwi, dicle, zagros (default: pezkuwi)
- `--type <type>` - Key type: sr25519 (default) or ed25519

### Examples

Generate an address starting with "Pez":
```bash
pezkuwi-vanitygen --match Pez
```

Generate with mnemonic (recoverable):
```bash
pezkuwi-vanitygen --match cook --mnemonic
```

Generate ed25519 key:
```bash
pezkuwi-vanitygen --match test --type ed25519
```

## Notes

When using the `--mnemonic` option, the generation will be very slow since it needs to generate mnemonics and then test the resulting outputs.

As with all other CLI utilities, `--help` will return a list of the available options.

## License

Apache-2.0
npm package: @pezkuwi/vue-identicon
Description: Renders an SVG picture representing an address
Author: Jaco Greeff
Latest version: 3.17.2

# @pezkuwi/vue-identicon

A generic identity icon that can render icons based on an address.

## Usage Examples

To install the component, do `yarn add @pezkuwi/vue-identicon` and then use it with `import Identicon from '@pezkuwi/vue-identicon';`

Inside a Vue component, you can now render any account with the associated icon, with associated props -

- `value` - the address you wish to display
- `size` (optional, defaults to `64`) - the size in pixels
- `theme` (optional, defaults to `substrate`) - the theme to use, one of
  - `polkadot` or
  - `substrate` (equivalent to `jdenticon`) or
  - `beachball` or
  - `empty` (displays nothing)

```
<template>
  <Identicon
    :size="128"
    :theme="'polkadot'"
    :value="'5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY'"
  />
</template>

<script>
  import Identicon from '@pezkuwi/vue-identicon';

  export default {
    ...
    components: { Identicon }
    ...
  };
</script>
```
npm package: @pezkuwi/wasm-crypto
Description: A wasm interface layer for use by @pezkuwi/util-crypto
Author: PezkuwiChain
Latest version: 7.5.18

# @pezkuwi/wasm-crypto

Wrapper around crypto hashing functions

## Usage

Install the package (also requires `@pezkuwi/util` for `TextEncoder` polyfills - not included here as a dependency to keep the tree lean)

`yarn add @pezkuwi/wasm-crypto @pezkuwi/util`

Use it -

```js
import { u8aToHex } from '@pezkuwi/util';
import { bip39Generate, bip39ToSeed, waitReady } from '@pezkuwi/wasm-crypto';

// first wait until the WASM has been loaded (async init)
await waitReady();

// generate phrase
const phrase = bip39Generate(12);

// get ed25519 seed from phrase
const seed = bip39ToSeed(phrase, '');

// display
console.log('phrase:', phrase);
console.log('seed:', u8aToHex(seed));
```
npm package: @pezkuwi/x-fetch
Description: A cross-environment fetch replacement
Author: Dijital Kurdistan Tech Institute
Latest version: 14.0.25

# @pezkuwi/x-fetch

A cross-environment fetch.

Install it via `yarn add @pezkuwi/x-fetch`

```js
import { fetch } from '@pezkuwi/x-fetch';

...
const response = await fetch('https://example.com/something.json');
const json = await response.json();
```
npm package: @pezkuwi/x-global
Description: A cross-environment global replacement
Author: Dijital Kurdistan Tech Institute
Latest version: 14.0.25

# @pezkuwi/x-global

A cross-environment global object. checks for global > self > window > this.

Install it via `yarn add @pezkuwi/x-global`

```js
import { xglobal } from '@pezkuwi/x-global';

console.log(typeof xglobal.TextEncoder);
```
npm package: @pezkuwi/x-textdecoder
Description: A TextDecoder replacement
Author: Dijital Kurdistan Tech Institute
Latest version: 14.0.25

# @pezkuwi/x-textdecoder

A cross-environment TextDecoder.

Install it via `yarn add @pezkuwi/x-textdecoder`

```js
import { TextDecoder } from '@pezkuwi/x-textdecoder';

...
const decoder = new TextDecoder('utf-8');
```
npm package: @pezkuwi/x-textencoder
Description: A TextDecoder replacement
Author: Dijital Kurdistan Tech Institute
Latest version: 14.0.25

# @pezkuwi/x-textencoder

A cross-environment TextEncoder.

Install it via `yarn add @pezkuwi/x-textencoder`

```js
import { TextEncoder } from '@pezkuwi/x-textencoder';

...
const encoder = new TextEncoder();
```
npm package: @pezkuwi/x-ws
Description: A cross-environment WebSocket replacement
Author: Dijital Kurdistan Tech Institute
Latest version: 14.0.25

# @pezkuwi/x-ws

A cross-environment WebSocket.

Install it via `yarn add @pezkuwi/x-ws`

```js
import { WebSocket } from '@pezkuwi/x-ws';

...
const ws = new WebSocket('wss://example.com');
```