open-index/open-npm huggingface dataset:
npm package: @pavelloz/eleventy-plugin-syntaxhighlight
Description: This package simply adds line numbers support to Eleventy to official [@11ty/eleventy-plugin-syntaxhighligh](https://github.com/11ty/eleventy-plugin-syntaxhighlight)
Author: Akuma Isaac Akuma
Latest version: 0.0.3

# @pavelloz/eleventy-plugin-syntaxhighlight

This package simply adds line numbers support to Eleventy to official [@11ty/eleventy-plugin-syntaxhighligh](https://github.com/11ty/eleventy-plugin-syntaxhighlight)

It escapes `{%`, `{{`, `}}` and `%}` to pass liquid validation.


## Installation

```sh
npm install --save-dev  @akumzy/eleventy-plugin-syntaxhighlight
```

## Configuration

```js
const syntaxHighlight = require('@akumzy/eleventy-plugin-syntaxhighlight')

module.exports = function(eleventyConfig) {
  eleventyConfig.addPlugin(syntaxHighlight,  { showLineNumbers: false, alwaysWrapLineHighlights:false })
}

```

## Markup Usage

````
```js#/1-2
function myFunction() {
  let highlighted = true;
  return highlighted;
}
```
````

<img src="./numbered-lines-and-highlight.png">

<hr>

To start with a specific line number,
add the number enclosed with square brackets eg. [2] after the hash mark (`#`).

The line numbers for this code fence
will start at 2 plus the highlighting syntax.

````
```json#[2]2,3
{
  "all": [...],
  "nav": [...],
  "books": [
    {
      "inputPath": "./src/articles/finding-oz.md",
      "outputPath": "_site/articles/finding-oz/index.html",
      "fileSlug": "finding-oz",
      "data": {...},
      "date": "2009-08-07T13:52:12.000Z",
      "url": "/articles/finding-oz/",
      "templateContent": "<p>As with most books ... much about The Wizard of Oz</li>\n</ul>\n",
      "template": {...}
    },
    ...
  ],
  "programming": [...],
}
```
````

<img src="./start-at-n-number.png">

## Credits

- Philip Borenstein (@pborenstein): [eleventy-md-syntax-highlight](https://github.com/pborenstein/eleventy-md-syntax-highlight)

- [@11ty/eleventy-plugin-syntaxhighligh](https://github.com/11ty/eleventy-plugin-syntaxhighlight)
npm package: @pavelpotemkin/utils
Description: Shared TypeScript utilities: Result type, HTTP client, validation, formatting
Latest version: 1.0.1

# @pavelpotemkin/utils

Shared TypeScript utilities: Result type, HTTP client, validation, formatting.

## Install

```bash
npm install @pavelpotemkin/utils
```

## API

### Result

```ts
import { Ok, Err, isOk, isErr, unwrap, type Result } from '@pavelpotemkin/utils'

const result: Result<number> = Ok(42)

if (isOk(result)) {
  console.log(result.value) // 42
}

unwrap(Ok(42))          // 42
unwrap(Err(new Error())) // throws
```

### HttpClient

Axios-обёртка, возвращающая `Result` вместо исключений. Поддерживает zod-валидацию ответов.

```ts
import { HttpClient } from '@pavelpotemkin/utils'
import { z } from 'zod'

const client = new HttpClient({
  baseURL: 'https://api.example.com',
  headers: { Authorization: 'Bearer token' },
  timeout: 5000,
})

const UserSchema = z.object({ id: z.number(), name: z.string() })

const result = await client.get('/users/1', { schema: UserSchema })

if (isOk(result)) {
  console.log(result.value) // { id: 1, name: "..." }
}
```

Методы: `get`, `post`, `put`, `patch`, `delete`.

Ошибки:
- `ApiError` — HTTP ошибки (4xx, 5xx) с полями `status`, `body`, `endpoint`
- `ResponseValidationError` — невалидный ответ по zod-схеме
- `NetworkError` — сетевые ошибки

### Validation

```ts
import { validateSchema, mustValue } from '@pavelpotemkin/utils'
import { z } from 'zod'

const data = validateSchema(z.object({ name: z.string() }), input) // throws ValidationError

const user = mustValue(maybeUser, 'User not found') // throws if null/undefined
```

### Format

```ts
import { formatFloatLine, formatCount } from '@pavelpotemkin/utils'

formatFloatLine(1234.5678, { accuracy: 2 })  // "1234.57"
formatFloatLine(1.999, { accuracy: 2, rounding: Decimal.ROUND_DOWN }) // "1.99"

formatCount(1500)       // { full: "1.5K", value: "1.5", postfix: "K", raw: Decimal }
formatCount(2_500_000)  // { full: "2.5M", ... }
```

### Nano

```ts
import { fromNanoToDecimal, fromDecimalToNano } from '@pavelpotemkin/utils'

fromNanoToDecimal('1500000000') // Decimal(1.5)
fromDecimalToNano(new Decimal(1.5)) // 1500000000
```

### Utils

```ts
import {
  awaitMs,
  getRandomInt,
  debounce,
  throttle,
  createDelayedResolver,
  hexToRgba,
} from '@pavelpotemkin/utils'

await awaitMs(100)
getRandomInt(1, 10)

const { debouncedFunction, cancel } = debounce(fn, 300)
const throttled = throttle(fn, 100)

const { promise, resolve } = createDelayedResolver<string>()

hexToRgba('#ff0000', 0.5) // "rgba(255, 0, 0, 0.5)"
```

### Types

```ts
import type { Optional, Brand } from '@pavelpotemkin/utils'

type UserId = Brand<string, 'UserId'>
const name: Optional<string> = null // string | null | undefined
```
npm package: @pavinthan/react-scripts
Description: Configuration and scripts for Create React App.
Latest version: 2.1.1

# react-scripts

This package includes scripts and configuration used by [Create React App](https://github.com/facebook/create-react-app).<br>
Please refer to its documentation:

- [Getting Started](https://facebook.github.io/create-react-app/docs/getting-started) – How to create a new app.
- [User Guide](https://facebook.github.io/create-react-app/) – How to develop apps bootstrapped with Create React App.