open-index/open-npm huggingface dataset:
npm package: @networkmonkey/tiny
Description: Removes all spaces from a string
Latest version: 1.0.0

# tiny
The tiniest npm module

![](https://img.shields.io/npm/v/@networkmonkey/tiny.svg)
![](https://img.shields.io/bundlephobia/min/@networkmonkey/tiny.svg)

Removes all spaces from a string.

## Install

```
$ npm install @networkmonkey/tiny
```

## Usage

```JavaScript
const tiny = require("@networkmonkey/tiny");

tiny("So much space!");
//=> "Somuchspace!"

tiny(1337);
// => Uncaught TypeError: Tiny wants a string!
//    at tiny(<anonymous>:2:41)
//    at <anonymous>:1:1
```
npm package: @networkteam/eel
Description: Embedded expression language, a parser and compiler for a safe subset of JavaScript for dynamic evaluation in JavaScript.
Latest version: 3.0.0

# @networkteam/eel

**Embedded expression language, a parser and compiler for a safe subset of JavaScript for dynamic evaluation in JavaScript.**

## Features

* Safe evaluation of JS expressions:
  * `!a || (b && c)`
  * `number == 42`
  * `foo.bar.baz`
  * `foo["bar"].baz`
  * `myFn(1, 2, 3)`
  * `myObj.method(arg1).prop`
* Compiles expressions from strings to plain JS functions
* Safe to use with user generated expressions (e.g. as a filter language)
* Use in the browser or with Node.js

## Installation

    yarn add @networkteam/eel

or

    npm install --save @networkteam/eel

## Usage

```
import { compile } from '@networkteam/eel`

const expr = compile('myVar');

const result = expr({myVar: 'a', 'otherVar': b});

// result === 'a'
```

Ideally, the expression should be pre-compiled. The generated function
can be used with different context values to evaluate the result.

## Reference

**compile(expression)**

`expression`: string

Compiles the given expression and returns a function that receives
the current context for evaluation. The context must be an object that
contains all defined variables as properties.

## Licence

MIT
npm package: @networld-to/fediverse-helper
Description: Provides helper API calls and functionality for Fediverse protocols, including ActivityPub, Webfinger.
Author: Alex Oberhauser
Latest version: 0.3.1

# Fediverse Helper

Typescript/Javascript library that provides basic API calls and utility functions
that are useful to interact with ActivityPub-based Fediverse instances. It
supports also related protocols and specifications such as Webfinger.

## Getting Started

```sh
# Not yet published
$ yarn add @networld-to/fediverse-helper
```

See the following usage example to get started.

```js
import FediverseAccount from '@networld-to/fediverse-helper';

const fediAccount = new FediverseAccount('@user@instance.tld');

console.log(fediProfile.getInstanceHost());
fediProfile.getAccountInfo(this.email).then((profile) => {
  console.log(profile);
});
```

## Functionality

The FediverseAccount class accepts the fediverse handle as input parameter
during the instantiation. Everything else is derived from it by making the
right calls and parsing the right data.

| Function         | Params                                 | Output                 | Caching                |
| ---------------- | -------------------------------------- | ---------------------- | ---------------------- |
| getInstanceHost  | None                                   | fediverseHost (String) | Not needed, local call |
| getWebfingerInfo | forceFetch: boolean = false (optional) | webfingerInfo (Object) | Yes                    |
| getInstanceInfo  | forceFetch: boolean = false (optional) | instanceInfo (Object)  | Yes                    |
| getAccountInfo   | forceFetch: boolean = false (optional) | accountInfo (Object)   | Yes                    |
| getOutboxPosts   | None                                   | posts (\[Object\])     | No                     |

The getHandleHost is an internal helper function that splits the fediverse
handle into two parts and returns the hostname of it. For the instance host
use the getInstanceHost function. The fediverse handle may only be an alias
to the real instance.

## Developers

```sh
# To run ./client/main.js after compiling the library (see ./dist output)
$ yarn run client @username@instance.tld
```

Alternatively run the steps manually.

```sh
# Make your changes in files under ./src/
$ yarn build
# see output under ./dist

# Change code under ./client/main.js and run it
$ node ./client/main.js @username@instance.tld
```
npm package: @netz-wire/elasticsearch
Description: ## Documentation:
Latest version: 1.8.1

# `@netz-wire/elasticsearch`

## Documentation:

This component receives as a parameter the URL of the ElasticSearch endpoint.

## Issues:

- `use client` cannot be added to the component as `tsup` will move it after the imports.
- `base.json` update: https://github.com/testing-library/jest-dom/issues/559
npm package: @netzen/lexical-bknd
Description: Feature-rich text editor built on Lexical with React, supporting images, code highlighting, and collaborative editing
Author: Netzen Catura s.r.o.
Latest version: 0.0.5

# @netzen/lexical-bknd

  

🚀 Feature-rich text editor built on Meta's Lexical framework with React support. Usage with bknd.io

  

## Features

  

- ✨ Rich text formatting (bold, italic, underline, strikethrough)
- 📝 Headings, lists, quotes, and code blocks
- 🖼️ Image upload and resizing
- 🎨 Syntax highlighting with Shiki
- 🔗 Link previews
- ↩️ Undo/Redo support
- 🎯 Drag & drop support
- 🤝 Collaborative editing with Yjs (optional)

  

## Installation

  

```bash
npm install @netzen/lexical-bknd
# or
yarn add @netzen/lexical-bknd
```


## Usage with bknd.io

  

This editor is designed to be used with the bknd.io admin panel. You need to create a CustomAdmin.tsx file to override the default rendering for your content fields.

Here is an example CustomAdmin.tsx:



```typescript
"use client";
import React from "react";
import { Admin } from "bknd/ui";
import type { SafeUser } from "bknd";
import { LexicalRichTextEditor } from "@netzen/lexical-bknd";
import "@netzen/lexical-bknd/styles.css";

export default function CustomAdmin({ user }: { user: SafeUser | null }) {
  const entities = ["pages", "posts"];
  
  const entitiesConfig = entities.reduce((acc, name) => {
    acc[name] = {
      list: {
          fields: ['title', 'id'], 
      },
      fields: {
        content: {
          render: (_ctx: any, _e: any, _f: any, ctx: any) => {
            const value =
              ctx.value && typeof ctx.value === "object"
                ? JSON.stringify(ctx.value)
                : ctx.value;
            return (
              <LexicalRichTextEditor
                value={value}
                onChange={ctx.handleChange}
              />
            );
          },
        },
      },
    };
    return acc;
  }, {} as any);

  return (
    <Admin
      withProvider={{ user }}
      config={{ basepath: "/admin", entities: entitiesConfig }}
    />
  );
}
```
npm package: @netzen/lexical-npm
Description: Feature-rich text editor built on Lexical with React, supporting images, code highlighting, and collaborative editing
Author: netzen
Latest version: 0.0.3

# @netzen/lexical-npm

🚀 Feature-rich text editor built on Meta's Lexical framework with React support.

## Features

- ✨ Rich text formatting (bold, italic, underline, strikethrough)
- 📝 Headings, lists, quotes, and code blocks
- 🖼️ Image upload and resizing
- 🎨 Syntax highlighting with Shiki
- 🔗 Link previews
- ↩️ Undo/Redo support
- 🎯 Drag & drop support
- 🤝 Collaborative editing with Yjs (optional)

## Installation

```bash
npm install @netzen/lexical-npm
# or
yarn add @netzen/lexical-npm
```