open-index/open-npm huggingface dataset:
npm package: @serenityjs/leveldb
Description: LevelDB bindings for Nodejs.
Latest version: 2.0.0

# @serenityjs/leveldb

This package allows the ease of reading/writing from a [leveldb](https://github.com/google/leveldb) formated database.

This package incorporates the super speeds of [Rust](https://www.rust-lang.org/tools/install) by using the pre-existing package [rusty-leveldb](https://docs.rs/rusty-leveldb/latest/rusty_leveldb/). The package creates [NodeJS](https://nodejs.org/en/) bindings to be used in any Node programs.

## Example Usage
```ts
import { Leveldb } from "@serenityjs/leveldb"

// Open a database with a given path
const db = Leveldb.open("./mydatabase")

// Write a key-value pair to the database
db.put(Buffer.from("Hello"), Buffer.from("World"))

// Read the value for a key from the database
const data = db.get(Buffer.from("Hello"))
const value = data.toString('utf8')

// Delete a key from the database
db.delete(Buffer.from("Hello"))

// Close the database when done!
db.close()

```
npm package: @serenityjs/math-linux-x64-gnu
Description: This is the **x86_64-unknown-linux-gnu** binary for `@serenityjs/math`
Latest version: 1.0.3

# `@serenityjs/math-linux-x64-gnu`

This is the **x86_64-unknown-linux-gnu** binary for `@serenityjs/math`
npm package: @serenityjs/math-win32-x64-msvc
Description: This is the **x86_64-pc-windows-msvc** binary for `@serenityjs/math`
Latest version: 1.0.3

# `@serenityjs/math-win32-x64-msvc`

This is the **x86_64-pc-windows-msvc** binary for `@serenityjs/math`
npm package: @serenityjs/rust-socket
Description: Rust socket is a UdpSocket wrapper written in Rust to provide a stable streaming of Datagram in NodeJS.
Latest version: 0.1.1

# @serenityjs/rust-socket

Rust socket is a UdpSocket wrapper written in Rust to provide a stable streaming of Datagram in NodeJS.

```ts
import { Socket } from "@serenityjs/rust-socket"
import { BinaryStream } from "@serenityjs/binarystream"

// Create a new Socket instance.
const socket = new Socket("0.0.0.0", 19132, 100) // Address, Port, TPS

// Start and listen for data.
socket.start((error, datagram) => {
  // Check if any error we received.
  if (error) throw new Error(error);

  // Seperate the values.
  const { identifier, stream } = datagram;

  // Create a new BinaryStream instance.
  const reply = new BinaryStream(stream.getBuffer());

  // Write additional data.
  reply.writeString16("Hello World!")

  // Reply to the incoming datagram!
  datagram.reply(reply);
});

```
npm package: @serenityjs/rust-socket-darwin-x64
Description: This is the **x86_64-apple-darwin** binary for `@serenityjs/rust-socket`
Latest version: 0.1.1

# `@serenityjs/rust-socket-darwin-x64`

This is the **x86_64-apple-darwin** binary for `@serenityjs/rust-socket`
npm package: @serenityjs/rust-socket-linux-x64-gnu
Description: This is the **x86_64-unknown-linux-gnu** binary for `@serenityjs/rust-socket`
Latest version: 0.1.1

# `@serenityjs/rust-socket-linux-x64-gnu`

This is the **x86_64-unknown-linux-gnu** binary for `@serenityjs/rust-socket`
npm package: @serenityjs/rust-socket-win32-x64-msvc
Description: This is the **x86_64-pc-windows-msvc** binary for `@serenityjs/rust-socket`
Latest version: 0.1.1

# `@serenityjs/rust-socket-win32-x64-msvc`

This is the **x86_64-pc-windows-msvc** binary for `@serenityjs/rust-socket`