open-index/open-npm huggingface dataset:
npm package: @krakstack/utils
Description: Javascript and React utility library
Author: junhoKims
Latest version: 0.0.10

# `@krakstack/utils`

A utility package that can be used in various environments

## Features

Commons:

- `isEmpty` - Utility function to check for empty arrays, objects, or strings
- `isNil` - Utility function to check for null or undefined
- `omit` - Utility function to remove specific key-value pairs from an object
- `pick` - Utility function to extract specific key-value pairs from an object
- `sum` - Utility function that returns the sum of given numbers
- `objectKeys` - Extended Object.keys function with accurate return type inference
- `getIsClient` - Utility function to check client environment
- `getIsServer` - Utility function to check server environment
- `withComma` - Formatting utility function to add thousand separators to numbers
- `dateUtils` - Date manipulation and formatting utilities based on dayjs

React:

- `ErrorBoundary` - Error Boundary component for React error handling
- `useErrorBoundary` - Hook containing functionality to explicitly expose or reset Error Boundary
- `combineRef` - Function that assigns all received refs to an element
- `createRequiredContext` - Utility function to create Context that enforces Provider usage
- `safeForwardRef` - Utility function to prevent props type errors in forwardRef
- `useDebounceState` - useState Hook with debounce functionality
- `useDebounceEffect` - Effect Hook with debounce functionality
- `useIsomorphicLayoutEffect` - Layout Effect Hook that works on both client and server
- `useOnViewport` - Hook that returns whether a specific element exists within the viewport

## TODOS

To-do list

- [x] Configure ESLint, Typescript
- [x] Configure bundling with rollup
- [x] Deploy npm package
- [ ] Develop documentation

## Usage

Installation 

- Requires minimum version 18 of packages such as `react`, `react-dom`, `@types/react`

```
pnpm add @krakstack/utils
```

Usage

```
import { isClient } from '@krakstack/utils/commons';

if (isClient()) {
  // Client code
}
```
npm package: @krakul/node-red-modbus-rtu-slave
Description: Provides basic nodes for simulating a modbus RTU slave.
Author: Jaagup Averin
Latest version: 1.0.1

# modbus-rtu-slave
Provides basic nodes for simulating a modbus RTU slave.
Provides the following nodes:
- Modbus-RTU-Slave: Slave itself; listens on the configured port for RTU requests and responds with requested values; values can be updated either over port using write commands, or directly using the node's input. Can contain upto 50000 values in each register.
- Modbus-RTU-Writer: A helper node for making writing common values directly into the Slave's input; can write addresses both in the local range [0:9999] and the global range [1:50000].
 
e.g, when writing the address 30001, it will always be written into the Input registers, since addresses [30001:40000] are conventionally the Input registers. When using the 'convertToLocal' option when writing, the address 30001 would automatically be converted to the address 0 (of the Input registers). If NOT using the 'convertToLocal' option, the address 30001 would stay as 30001. Since all buffers allow upto 50000 values, this would also work and not overflow into another buffer. (This unconventional approach is supported due to a requirement of a project.)
npm package: @krakz999/tabula-node
Description: A package for extracting tables from PDF files written in Typescript, build on top of tabula-java.
Author: Martin
Latest version: 1.0.6

# @krakz999/tabula-node

A package for extracting tables from PDF files. The package is a wrapper completely written in `Typescript`, built on top of the popular `tabula-java` library.

## Installation

To use this package, install it via your favourite package manager:

    pnpm i @krakz999/tabula-node

## Usage

    import { extractTables } from '@krakz999/tabula-node';

    const results = await extractTables("./test.pdf", {
        pages: "all",
        guess: true
    });

    console.log(results);

## Options

The `extractTables` function accepts an `options` object with the following properties:

- `area`: Portion of the page to analyze. Example: "269.875,12.75,790.5,561". Accepts top,left,bottom,right i.e. y1,x1,y2,x2 where all values are in points relative to the top left corner. If all values are between 0-100 (inclusive) and preceded by '%', input will be taken as % of actual height or width of the page. Example: "%0,0,100,50". To specify multiple areas, pass an array. Default is entire page.
- `columns`: X coordinates of column boundaries. Example "10.1,20.2,30.3". If all values are between 0-100 (inclusive) and preceded by '%', input will be taken as % of actual width of the page. Example: "%25,50,80.6"
- `format`: Output format: (CSV,TSV,JSON). Default: CSV
- `guess`: Guess the portion of the page to analyze per page.
- `lattice`: Force PDF to be extracted using lattice-mode extraction (if there are ruling lines separating each cell, as in a PDF of an Excel spreadsheet)
- `noSpreadsheet`: [Deprecated in favor of -t/--stream] Force PDF not to be extracted using spreadsheet-style extraction (if there are no ruling lines separating each cell)
- `pages`: Comma separated list of ranges, or all. Examples: "1-3,5-7", --pages 3 or "all". Default is "1"
- `password`: Password to decrypt document. Default is empty
- `stream`: Force PDF to be extracted using stream-mode extraction (if there are no ruling lines separating each cell)
- `useLineReturns`: Use embedded line returns in cells. (Only in spreadsheet mode.)
npm package: @krampa/common
Description: Shared types and constants for Krampa fitness challenge app
Author: Daniel
Latest version: 0.17.0

# @krampa/common

[![npm version](https://img.shields.io/npm/v/@krampa/common.svg)](https://www.npmjs.com/package/@krampa/common)
[![npm downloads](https://img.shields.io/npm/dm/@krampa/common.svg)](https://www.npmjs.com/package/@krampa/common)
[![license](https://img.shields.io/npm/l/@krampa/common.svg)](https://github.com/dabbe/krampa-common/blob/main/LICENSE)

Shared types and constants for the Krampa fitness challenge app.

## Installation

```bash
npm install @krampa/common
```

## Usage

### Goal Types

```typescript
import { GOAL_TYPES, GOAL_TYPE_VALUES, GoalType } from "@krampa/common";

// Use constants
const goalType = GOAL_TYPES.WORKOUT_STRENGTH; // "workout/strength"

// Use in TypeScript types
const myGoal: GoalType = "weight/loss";

// Use for database enum
const dbEnum = GOAL_TYPE_VALUES; // Array of all valid goal types
```

### Challenge Status

```typescript
import { CHALLENGE_STATUSES, CHALLENGE_STATUS_VALUES, ChallengeStatus } from "@krampa/common";

// Use constants
const status = CHALLENGE_STATUSES.ONGOING; // "ONGOING"

// Use in TypeScript types
const challengeStatus: ChallengeStatus = "PENDING";

// Use for database enum
const dbEnum = CHALLENGE_STATUS_VALUES; // Array of all valid challenge statuses
```

### Invite Status

```typescript
import { INVITE_STATUSES, INVITE_STATUS_VALUES, InviteStatus } from "@krampa/common";

// Use constants
const status = INVITE_STATUSES.ACCEPTED; // "ACCEPTED"

// Use in TypeScript types
const inviteStatus: InviteStatus = "PENDING";

// Use for database enum
const dbEnum = INVITE_STATUS_VALUES; // Array of all valid invite statuses
```

## Development

```bash
# Build the package
npm run build

# Publish to npm (requires npm login)
npm publish --access public
```

## License

MIT
npm package: @krampstudio/recog
Description: A widget for object recognition in images
Author: Bertrand Chevrier
Latest version: 0.1.0

# recog
Image Recognition Widget

[![MIT License](https://img.shields.io/badge/License-MIT-yellow.svg)](./LICENSE)

![Svelte](https://img.shields.io/badge/svelte-%23f1413d.svg?style=for-the-badge&logo=svelte&logoColor=white) ![TailwindCSS](https://img.shields.io/badge/tailwindcss-%2338B2AC.svg?style=for-the-badge&logo=tailwind-css&logoColor=white)


## Installation

### The demo app

```bash
git clone https://github.com/krampstudio/recog.git
cd recog
npm ci
```

The widget uses the [Google Cloud Vision Api](https://cloud.google.com/vision) to detect objects in images. You'll have to [set up vision](https://cloud.google.com/vision/docs/setup) and provide an [API KEY](https://cloud.google.com/docs/authentication/api-keys) in order to connect to the service.

The key needs to be set in `config.json`.

To start the demo app:

```
npm start
```

### As a library

```bash
npm i @krampstudio/recog
```

#### Usage as a vanilla JavaScript component

```js
import RecogWidget from 'recog';

new RecogWidget({
  target: document.querySelector('.some-container'),
  props: {
    apiUrl: 'https://vision.googleapis.com/v1/images:annotate?key=<YOUR_VISION_API_KEY>'
  }
});
```


#### Usage as a Svelte component

```js
<script>
  import RecogWidget from 'recog/lib/RecogWidget.svelte';
  const apiUrl = 'https://vision.googleapis.com/v1/images:annotate?key=<YOUR_VISION_API_KEY>'
</script>
<RecogWidget {apiUrl} />
```

#### Styling

The styles are provided by [tailwindcss](https://tailwindcss.com/). 

## Development

 - unit test : `npm test`
 - run the dev server : `npm dev`
 - lint the code : `npm lint`

## License
[MIT](https://choosealicense.com/licenses/mit/)
npm package: @krampus-nuggets/lazy-boi
Description: CLI for installing project templates for different libraries and frameworks
Author: krampus-nuggets
Latest version: 1.0.0

<p align="center">
<img src="https://zdcohumppa-github-resources.s3.us-east-2.amazonaws.com/lazy-boi/lazyBoi.png" width=150px height="150px" />
</p>

# Lazy Boi

A CLI for installing project templates for multiple libraries and frameworks

## Currently supported libraries/frameworks

- ReactJS
- VueJS

## Note The Following

1. Currently only tested on Windows OS, sooooooooo🤷🏽‍♂️
2. Templates that are installed are not from original providers they are specifically catered towards my programming/building style thus this project is also customizable for your own style👨🏽‍🏭
3. Also, because of point 2 above packages can be outdated🤾🏽‍♂️
npm package: @krandfetch/brandfetch
Description: JavaScript/TypeScript SDK for Brandfetch REST PI
Author: KeisukeYamashita
Latest version: 0.1.0

# Brandfetch SDK

JavaScript/TypeScript SDK for Brandfetch REST API.

## Installation

Install by the following command:

```console
npm i @krandfetch/brandfetch
```

## Usage

```typescript
import { Client } from '@krandfetch/brandfetch';

const client = new Client({ token });

return await client.brandSearch.search({ name: "Apple" });
```

## License

This project is licensed under the terms of the [MIT license](/LICENSE).