open-index/open-npm huggingface dataset:
npm package: @reef-defi/util
Description: A collection of useful utilities for @reef-defi
Author: Reef Finance
Latest version: 7.8.2

# @reef-defi/util

Various useful utility functions that are used across all projects in the [@reef-defi](https://reef.io) 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 @reef-defi/util
```

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

```js
import { isHex } from '@reef-defi/util';
```
npm package: @reef-defi/util-crypto
Description: A collection of useful crypto utilities for @reef-defi
Author: Reef Finance
Latest version: 7.8.2

# @reef-defi/util-crypto

Various useful cyrpto utility functions that are used across all projects in the [@reef-defi](https://reef.io) 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 @reef-defi/util-crypto
```

Functions can be imported as follows:

```js
import { mnemonicGenerate } from '@reef-defi/util-crypto';
```
npm package: @reef-defi/x-fetch
Description: A cross-environment fetch replacement
Author: Reef Finance
Latest version: 7.8.2

# @reef-defi/x-fetch

A cross-environment fetch.

Install it via `yarn add @reef-defi/x-fetch`

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

...
const response = await fetch('https://example.com/something.json');
const json = await response.json();
```
npm package: @reef-defi/x-global
Description: A cross-environment global replacement
Author: Reef Finance
Latest version: 7.8.2

# @reef-defi/x-global

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

Install it via `yarn add @reef-defi/x-global`

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

console.log(typeof xglobal.TextEncoder);
```
npm package: @reef-defi/x-textdecoder
Description: A TextDecoder replacement
Author: Reef Finance
Latest version: 7.8.2

# @reef-defi/x-textdecoder

A cross-environment TextDecoder.

Install it via `yarn add @reef-defi/x-textdecoder`

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

...
const decoder = new TextDecoder('utf-8');
```
npm package: @reef-defi/x-textencoder
Description: A TextDecoder replacement
Author: Reef Finance
Latest version: 7.8.2

# @reef-defi/x-textencoder

A cross-environment TextEncoder.

Install it via `yarn add @reef-defi/x-textencoder`

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

...
const encoder = new TextEncoder();
```
npm package: @reef-defi/x-ws
Description: A cross-environment WebSocket replacement
Author: Reef Finance
Latest version: 7.8.2

# @reef-defi/x-ws

A cross-environment WebSocket.

Install it via `yarn add @reef-defi/x-ws`

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

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