open-index/open-npm huggingface dataset:
npm package: @plandalf/plandalf-js
Description: Plandalf.js loading utility
Author: Plandalf
Latest version: 0.1.16

# Plandalf-js

Plandalf-js is a JavaScript utility designed to simplify the integration and management of your Plandalf-powered applications. It provides a seamless way to load and initialize Plandalf in your web projects, ensuring you have access to all the powerful features of Plandalf with minimal setup.

## Features

- Easy integration into any web project
- Support for both browser and module environments
- Efficient loading and initialization of Plandalf
- Customizable settings to tailor the utility to your needs

## Getting Started

To get started with Plandalf-js, you can include it in your project either by directly embedding it into your HTML or by importing it as a module in your JavaScript project.

### Embedding in HTML

Add the following script tag to your HTML to start using Plandalf-js immediately:

```html
<script src="https://js.plandalf.com/v1"></script>
```

## Importing as a Module
Install Plandalf-js via npm:

```bash
npm install @plandalf/plandalf-js
```

Then, import it in your project:

```javascript
import { loadPlandalf } from '@plandalf/plandalf-js';

// Initialize Plandalf with your configuration
const plandalf = await loadPlandalf('your_configuration_here');
```


## Documentation
For detailed documentation on Plandalf-js and its APIs, visit Plandalf-js Documentation.

## Examples
Here are some basic examples to get you started:

## Initializing Plandalf
```javascript
const plandalf = await loadPlandalf('your_configuration_here');
// Use Plandalf in your project
```

## Advanced Configuration
```javascript
const plandalf = await loadPlandalf({
  option1: 'value1',
  option2: 'value2'
});
// Plandalf is now initialized with custom options
```

## Contributing
We welcome contributions to Plandalf-js! If you have a feature request, bug report, or a patch, please feel free to submit an issue or pull request on our GitHub repository.

## License
Plandalf-js is open-source software licensed under the MIT license.
npm package: @plandek-utils/hash-utils
Description: TypeScript utils for generating hashes and sorting JSON.
Author: Eduardo Turiño
Latest version: 2.0.2

# @plandek-utils/hash-utils

TypeScript utils for generating hashes and sorting JSON.

## Usage

### `sortedJSONFor(input: Record<string, unknown>): string`

```ts
import { sortedJSONFor } from "@plandek-utils/hash-utils";

const obj = { name: "John", age: 30, deep: { b: 2, a: 4 } };
console.log(sortedJSONFor(obj));
// OUTPUT: {"age":30,"deep":{"a":4,"b":2},"name":"John"}
```

### `idFromComplex(prefix: string | null, input: Record<string, unknown>): string`

Makes a hash, using `hashFromString()` of the serialised sorted json of the input object. Then it optionally prepends the given prefix.

```ts
import { idFromComplex } from "@plandek-utils/hash-utils";

const obj = { foo: "bar", stuff: 1, nested: { deep: true, whatever: "this is" } };
console.log(idFromComplex("my-pref", obj));
// OUTPUT: my-pref--sAcSRiNpatI8ZY3K_EfpGQMmsBUcoM8KIAuRz24LbZctHCEiG_aVXikN_b2NsNAOkes-65cuYCG2zdi5nl6HRw
```

### `hashFromString(prefix: string | null, input: Record<string, unknown>): string`

Makes a hash using SHA-512, in base64, replacing characters to be URL safe:

-  `/`: `_`
-  `+`: `-`
-  `=`: empty string


```ts
import { idFromComplex } from "@plandek-utils/hash-utils";

const str = '{"age":30,"deep":{"a":4,"b":2},"name":"John"}';
console.log(hashFromString(str));
// OUTPUT: sAcSRiNpatI8ZY3K_EfpGQMmsBUcoM8KIAuRz24LbZctHCEiG_aVXikN_b2NsNAOkes-65cuYCG2zdi5nl6HRw
```
npm package: @plandek-utils/safe-compact
Description: Lodash compact without removing 0, without `lodash`
Author: Eduardo Turiño
Latest version: 2.0.3

# `@plandek-utils/safe-compact`

[![npm version](https://badge.fury.io/js/%40plandek-utils%2Fsafe-compact.svg)](https://badge.fury.io/js/%40plandek-utils%2Fsafe-compact)
![Github Actions](https://github.com/plandek-utils/ts-safe-compact/actions/workflows/ci-master.yml/badge.svg)
[![Maintainability](https://api.codeclimate.com/v1/badges/05e2125551579a9abbcc/maintainability)](https://codeclimate.com/github/plandek-utils/ts-safe-compact/maintainability)
[![Test Coverage](https://api.codeclimate.com/v1/badges/05e2125551579a9abbcc/test_coverage)](https://codeclimate.com/github/plandek-utils/ts-safe-compact/test_coverage)

[TypeDoc generated docs in here](https://plandek-utils.github.io/ts-safe-compact)

[Github repo here](https://github.com/plandek-utils/ts-safe-compact)

utils similar to `compact`, to remove certain "falsy" values.

## Installation

`yarn add @plandek-utils/safe-compact` or `npm install @plandek-utils/safe-compact`.

## Usage

### `safeCompact`

returns a list with the ["safe truthy" elements](#safeIsTruthy) of the given list

```typescript
import { safeCompact } from "@plandek-utils/safe-compact";

safeCompact(null) // => []
safeCompact(undefined) // => []
safeCompact([1, 0, NaN, Infinity, 1, null, 2, [], "", undefined, -1])
  // => [1, 0, Infinity, 1, 2, [], -1]
```

### `filterNones`

returns a list with the `null` and `undefined` elements removed

```typescript
import { filterNones } from "@plandek-utils/safe-compact";

filterNones(null) // => []
filterNones(undefined) // => []
filterNones([0, NaN, Infinity, 1, null, 2, [], "", false, undefined, -1])
  // => [0, NaN, Infinity, 1, 2, [], "", false, -1]
```

### `isNotNone`

returns true if the value is not `null` nor `undefined`

```typescript
import { isNotNone } from "@plandek-utils/safe-compact";

isNotNone(null) // => false
isNotNone(undefined) // => false
isNotNone([]) // => true
isNotNone(false) // => true
isNotNone(0) // => true
isNotNone("") // => true
isNotNone("aaa") // => true
```

### `safeIsTruthy`

returns true if the value is truthy or if it is 0.

```typescript
import { safeIsTruthy } from "@plandek-utils/safe-compact";

safeIsTruthy(1) // => true
safeIsTruthy(0) // => true
safeIsTruthy("") // => false
safeIsTruthy(null) // => false
safeIsTruthy(undefined) // => false
safeIsTruthy(NaN) // => false
```
npm package: @plandelta/react-scroll-area
Description: ## Installation
Latest version: 1.0.5-2621.2

# `react-scroll-area`

## Installation

```sh
$ yarn add @radix-ui/react-scroll-area
# or
$ npm install @radix-ui/react-scroll-area
```

## Usage

View docs [here](https://radix-ui.com/primitives/docs/components/scrollbar).
npm package: @plandid/docker-scripts
Description: Tooling for node servers for Plandid LLC
Author: Carl Schader
Latest version: 2.1.0

# docker-scripts
Useful scripts for using node with docker

# Installation
```
npm install --save @plandid/docker-scripts
```

# Usage
Setup Dockerfile and .dockerignore:
```
npx docker-setup
```

Build image:
```
npx docker-build
```

Run container from image:
```
npx docker-run
```

Kill all running containers:
```
npx docker-kill-all
```