open-index/open-npm huggingface dataset:
npm package: @rlqd/minecraft-motd-util
Description: Parse and convert a Minecraft MOTD into various formats.
Author: Jacob Gunther
Latest version: 1.1.12

# minecraft-motd-util
Parse and convert a Minecraft MOTD into various formats.

Fork of [PassTheMayo/minecraft-motd-util](https://github.com/PassTheMayo/minecraft-motd-util).

## Installation

```bash
npm install @rlqd/minecraft-motd-util
```

## Usage

### Parsing
`parse(input, options)` will parse an MOTD into an array of tokens for easier formatting and generic use. The result of this method can be used as an argument to any other utility that uses an MOTD input. You can supply either a string or a [Chat](https://wiki.vg/Chat) object as the input.

```js
import { parse } from '@rlqd/minecraft-motd-util';

// Defaults
const options = {
    formattingCharacter: '§'
};

const result = parse('§k;;; §cA §a§lMinecraft §cServer §r§k;;;', options); // `options` is optional

console.log(result);
// => [
//        { text: ';;; ', color: 'white', obfuscated: true },
//        { text: 'A ', color: 'red' },
//        { text: 'Minecraft ', color: 'green', bold: true },
//        { text: 'Server ', color: 'red' },
//        { text: ';;;', color: 'white', obfuscated: true }
//    ]
```

### Formatting
`format(input, options)` will format the parsed tree or string back into a normalized string with the provided formatting character. Note that this method will prefer resetting color over using `§r`.

```js
import { format } from '@rlqd/minecraft-motd-util';

// Defaults
const options = {
    formattingCharacter: '§'
};

const result = format(result, options); // `options` is optional, `result` assumed from example above

console.log(result);
// => '§f§k;;; §cA §a§lMinecraft §cServer §f§k;;;'
```

### Clean
`clean(tree, options)` will remove all formatting codes and characters from the string with the implied formatting character.

```js
import { clean } from '@rlqd/minecraft-motd-util';

// Defaults
const options = {
    formattingCharacter: '§'
};

const result = clean(result, options); // `options` is optional, `result` assumed from example above

console.log(result);
// => ';;; A Minecraft Server ;;;'
```

### Convert to HTML
`toHTML(input, options)` will convert the formatted string or parsed MOTD into an HTML string.

```js
import { toHTML } from '@rlqd/minecraft-motd-util';

// Defaults
const options = {
    serializers: { ... }, // see `types.ts` for documentation
    rootTag: 'span'
};

const result = toHTML(result, options); // `options` is optional, `result` assumed from example above

console.log(result);
// => '<span><span class="minecraft-formatting-obfuscated" style="color: #FFFFFF;">;;; </span><span style="color: #FF5555;">A </span><span style="color: #55FF55; font-weight: bold;">Minecraft </span><span style="color: #FF5555;">Server </span><span class="minecraft-formatting-obfuscated" style="color: #FFFFFF;">;;;</span></span>'
```
npm package: @rlqd/minecraft-server-util
Description: A Node.js library for Minecraft servers that can retrieve status, perform queries, and RCON into servers.
Author: Jacob Gunther
Latest version: 5.4.4

# minecraft-server-util

```
npm install @rlqd/minecraft-server-util
```

A Node.js library for Minecraft servers that can retrieve status, perform queries, and RCON into servers. It uses modern Minecraft protocols to support the latest servers and also includes backward compatibility for older versions. This library supports both Java Edition and Bedrock Edition servers, as long as the correct method is used.

Fork of [PassTheMayo/minecraft-server-util](https://github.com/PassTheMayo/minecraft-server-util) (archived).

---

Everything you need to know to get started is located within our documentation website: **https://passthemayo.gitbook.io/minecraft-server-util/** (assuming it's still up)
npm package: @rlreamy/react-data-grid
Description: Excel-like grid component built with React, with editors, keyboard navigation, copy & paste, and the like
Author: Adazzle
Latest version: 3.0.17

# react-data-grid

> The core of react-data-grid
 

## Install

```sh
npm install --save react-data-grid
```

## Usage 

```sh
import ReactDataGrid from 'react-data-grid';

const columns = [{ key: 'id', name: 'ID' }, { key: 'title', name: 'Title' }];
const rows = [{ id: 1, title: 'Title 1' }, ...];
const rowGetter = rowNumber => rows[rowNumber];

const Grid = () => {
  return <ReactDataGrid
    columns={columns}
    rowGetter={rowGetter}
    rowsCount={rows.length}
    minHeight={500} />);
}
```

## Exports
Asside from the grid this package exports:

name                   | source                                  |
-----------------------|-----------------------------------------|
RowComparer            | [RowComparer](./src/RowComparer.js)     |
RowsContainer          | [RowsContainer](./src/RowsContainer.js) |
Row                    | [Row](./src/Row.js)                     |
Cell                   | [Cell](./src/Cell.js)                   |
HeaderCell             | [HeaderCell](./src/HeaderCell.js)       |
editors                | [Editors](./src/editors)                |
formatters             | [Formatters](./src/formatters)          |
utils                  | [utils](./src/utils)                    |
shapes                 | [shapes](./src/PropTypeShapes)          |
_constants             | [_constants](./src/AppConstants.js)     |
_helpers               | [_helpers](./src/helpers)               |
npm package: @rlvt/line
Description: [![version](https://img.shields.io/npm/v/@nivo/line.svg?style=flat-square)](https://www.npmjs.com/package/@nivo/line)
Author: Raphaël Benitte
Latest version: 0.62.4

# `@nivo/line`

[![version](https://img.shields.io/npm/v/@nivo/line.svg?style=flat-square)](https://www.npmjs.com/package/@nivo/line)

## Line

[documentation](http://nivo.rocks/line/)

![Line](https://raw.githubusercontent.com/plouc/nivo/master/packages/line/doc/line.png)

## LineCanvas

[documentation](http://nivo.rocks/line/canvas/)

![LineCanvas](https://raw.githubusercontent.com/plouc/nivo/master/packages/line/doc/line-canvas.png)