open-index/open-npm huggingface dataset:
npm package: @hatiolab/prettier-config
Description: Prettier config used at hatiolab projects
Author: Hatiolab Inc.
Latest version: 1.0.0

# prettier-config

Prettier config used at hatiolab projects

## Usage

Install the package using `npm` (or `yarn`)

```sh
npm install --save-dev @hatiolab/prettier-config
```

Add the `prettier` key to your `package.json`

```
  ...
  "prettier": "@github/prettier-config",
  "license": "MIT",
  ...
```

[Check out the `prettier` documentation for more info on sharing configurations](https://prettier.io/docs/en/configuration.html#sharing-configurations).
npm package: @hatish/hati-sdk-node
Description: Node.js SDK for communication with [Hati](https://github.com/hati-sh/hati) server.
Author: Maciej Lisowski
Latest version: 0.2.5-dev

# @hatish/hati-sdk-node

Node.js SDK for communication with [Hati](https://github.com/hati-sh/hati) server.

## Installation

```
npm install --save @hatish/hati
```

## Usage

```ts
const hati = new HatiSdk({
  host: "localhost",
  port: 4242,
});

const value = JSON.stringify({
  ok: true,
  data: {
    name: "Jhon",
    lastname: "Doe",
    description: "Great person!\nFriendly foe.",
  },
});

const res = await hati.set(`jhon`, value, StorageType.MEMORY);
if (res === true) {
  console.log("ok");
}

const resValue = await hati.get(`jhon`, StorageType.MEMORY);
if (resValue !== null) {
  console.log(resValue);
}

const resHas = await hati.has(`jhon`, StorageType.MEMORY);
if (resHas === true) {
  console.log("key exist");
}

const resDelete = await hati.delete(`jhon`, StorageType.MEMORY);
if (resDelete === true) {
  console.log("key deleted");
}

/// Set key with TTL (in ms) value
const resWithTtl = await hati.set(`jhon`, value, StorageType.MEMORY, 10000);
if (resWithTtl === true) {
  console.log("ok");
}
```
npm package: @hatkom/aws-auth
Description: A lightweight AWS Cognito authentication client built on top of `amazon-cognito-identity-js`.
Author: Max Schmide
Latest version: 1.4.5

# AWS Auth Client

A lightweight AWS Cognito authentication client built on top of `amazon-cognito-identity-js`.

## Install

```sh
npm i @hatkom/aws-auth
```

## Usage

```ts
import { AWSAuthClient } from '@hatkom/aws-auth'

const auth = new AWSAuthClient('us-east-1_xxxxxxx', 'xxxxxxxxxxxxxxxxxxxxxxxxxx')

// Sign in
const session = await auth.authenticateUser({ email: 'user@example.com', password: 'password' })

// Get current session token (auto-refreshes if expired)
const token = await auth.getCurrentSessionToken()

// Sign out
await auth.signOut()
```

## API

- `authenticateUser({ email, password })` — sign in, returns session or `'new-password-required'`
- `getCurrentSessionToken()` — returns current access JWT, refreshing if needed
- `signOut()` — signs out the current user
- `completeNewPasswordChallenge({ username, newPassword })` — complete a new password challenge
- `forgotPassword(username)` — initiate forgot password flow
- `forgotPasswordSubmit({ username, verificationCode, password })` — submit new password
- `resendVerificationCode(username)` — resend email verification code
- `verifyUserEmail({ username, code })` — confirm email registration
npm package: @hatkom/business-central-typescript
Description: Provides TypeScript interfaces and typesafe method definitions for interacting with Business Central APIs.
Author: Hatkom ApS
Latest version: 1.0.3

# Business Central TypeScript Interfaces

This package provides TypeScript interfaces and typesafe method definitions for interacting with Microsoft Dynamics 365 Business Central APIs.

## Features
- TypeScript interfaces for Business Central entities (e.g., Company, Vendor, Journal)
- Typesafe method definitions for calling Business Central APIs

## Installation

```bash
npm install business-central-typescript
```

## Usage

```typescript
import { Company, Vendor, Journal, getCompany, getVendors } from 'business-central-typescript';
// Use the provided types and methods to interact with Business Central APIs in a type-safe way
```

## License
MIT
npm package: @hatkom/prisma-generator-c-sharp
Description: Generate C# records based on Prisma schema
Author: Vladyslav Zavalykhatko
Latest version: 1.3.0

# Generate C# records based on Prisma schema

Input:

```prisma
model Post {
  id Int
  title String
  content String
  published Boolean
  author User
}

model User {
  id Int
  name String
  email String
  posts Post[]
}
```

Output:

```csharp
public record Post(
  int id, 
  string title, 
  string content, 
  bool published, 
  User author
);

public record User(
  int id, 
  string name, 
  string email, 
  Post[] posts
);
```

Supported:

* Scalars
* Enums
* Arrays
* Relations
* Optional fields
npm package: @hats.finance/hats-contracts
Description: White Hat Incentive
Author: contact@hats.finance
Latest version: 2.0.0

# <img src="https://raw.githubusercontent.com/hats-finance/icons/main/hats.svg" alt="Hats.Finance" text="sds" height="40px"> Hats.Finance | Contracts

[![Coverage Status](https://coveralls.io/repos/github/hats-finance/hats-contracts/badge.svg?t=Ko4Ndz&kill_cache=2)](https://coveralls.io/github/hats-finance/hats-contracts)

The Hats protocol is designed to give white hats hackers the opportunity to gain more on their good behaviour and contribution. Trying to tilt the balance of incentives, and incentivizing more hackers to act responsively. It is doing so by letting projects publish on-chain bounties for their protocols, with committees in-charge of approving or rejecting claims. To further increase the efficiency of this model, the HAT token is introduced, to help bootstrap both ends in this two-sided market.

## Overview

### Usage

Installation:

```
npm install
```

Create `.env` files as needed. There is a file called `.env.example` that you can use as a template.

Run the tests:

```
npx hardhat test
```

## Security

Audit reports are in the [audit](./audit) directory.

Please report any security issues you find to contact@hats.finance

## Deployment

Please refer to [deployment](./docs/deployment.md) for information about deploying. For a quick sanity check of the deployment, you can run:

`npx hardhat deploy --network {rinkeby|mainnet} --tags verify`

## Contribute

PRs are welcome - but you may want to coordinate with kufi@hats.finance to coordinate before spending a lot of time on our code

## License

Hats.finance is released under the [MIT License](LICENSE).
npm package: @hatsprotocol/modules-sdk
Description: Detailed documentation can be found [here](https://docs.hatsprotocol.xyz/for-developers/hats-modules/modules-sdk)
Author: Haberdasher Labs
Latest version: 1.6.0

# Hats-Protocol Modules SDK

## Documentation

Detailed documentation can be found [here](https://docs.hatsprotocol.xyz/for-developers/hats-modules/modules-sdk)

## Contributing

Tests are run with Jest via `pnpm test`.

To run a specific test file, update the test script in `package.json` to include the test file name.

`pnpm jest eligibilitiesChain.test.ts -i`

To run a specific test, update the test script in `package.json` to include the test file name and the test name with the `-t` flag.

`pnpm jest withRegistry.test.ts -t 'Eligibility Client Tests Test create all modules' -i`

## Actions

Accepted contributions need to match the passing tests. The action is run on PR branches to ensure this.