open-index/open-npm huggingface dataset:
npm package: @datkt/pretty-hash
Description: Port of pfrazee's pretty-hash function to output ByteArray data as a hex string
Author: Joseph Werle
Latest version: 1.1.1

pretty-hash
===========

Port of @pfrazee's pretty-hash function to print ByteArray data as a hex string

## Installation

```sh
$ npm install @datkt/pretty-hash
```

## Usage

```kotlin
import datkt.prettyhash.prettyHash

fun main(args: Array<String>) {
  val bytes = bytesFrom(
    0xde, 0xad, 0xbe, 0xef,
    0xde, 0xad, 0xbe, 0xef
  )

  val string = prettyHash(bytes)
  println(string) // deadbeefdeadbeef
}
```

## konanc Config

Specify the following configuration in your modules `.kc` file for the
`konanc-config`.

```ini
repo[] = "@datkt/pretty-hash"
require[] = "pretty-hash"
library[] = "pretty-hash"
```

## API

### `prettyHash(bytes: Any? = null): String"`

Converts given input into a pretty hash string made of hex characters.

## Prerequisites

* [Kotlin/Native](https://github.com/JetBrains/kotlin-native) and the
  `konanc` command line program.

## See Also

* https://github.com/pfrazee/pretty-hash
* https://github.com/datkt/konanc-config

## License

MIT
npm package: @datonow/sdk-server
Description: Server-side SDK for Datonow - Trigger events, send push notifications, and manage client tokens from Node.js.
Author: Developtica
Latest version: 1.1.3

# Datonow Server-side SDK

Trigger realtime events securely from your Node.js backend using the **Datonow** server SDK.

## Installation

```bash
npm install @datonow/sdk-server
```

## Quick Start

Initialize with your App ID, Key, and Secret to securely trigger events.

```typescript
import { DatonowServer } from '@datonow/sdk-server';

// Initialize
const server = new DatonowServer({
  appId: 'your_app_id',
  key: 'your_app_key',
  secret: 'your_app_secret' // Keep this secure!
});

// Trigger an event
async function triggerUpdate() {
  await server.trigger('public-updates', 'news_alert', { 
    message: 'Breaking News from Server!' 
  });
}
```

## Compatibility

This SDK is specifically designed for the **Javascript/Typescript** ecosystem:
- **Node.js:** Fastify, Express.js, NestJS
- **Next.js:** Server Actions, API Routes
- **Edge Functions:** Vercel Edge, Cloudflare Workers

## Why Datonow?

The Datonow core engine is built for ultra-high performance and sub-100ms message delivery. While this SDK is built for JS/TS developers, Datonow maintains a standard HTTP/JSON protocol that allows integration from any language (**PHP/Laravel, Python, C#, etc.**) visit [datonow.com/docs](https://datonow.com/docs).

## Security

The Server SDK uses HMAC-SHA256 signatures to authorize every request. Your App Secret is used locally to sign the payload and is never transmitted over the network in its raw form.

## Documentation

Comprehensive guides, API references, and sample projects are available at [datonow.com/docs](https://datonow.com/docs).

---
Developed and maintained by **Developtica**.