open-index/open-npm huggingface dataset:
npm package: @k1eu/typed-request
Description: A typed version of Request, Response and Fetch
Author: Tomasz Kielar
Latest version: 0.9.0

# typed-request

`typed-request` is a utility library for working with Request,Responses and Fetches in Typescript.

In a nutshell, Typed Request allows you to:

- Fetch data from the server with strongly typed JSON responses with `tf` function
- Create TypedRequest and TypedResponse instances
- It is a drop-in replacement for Request and Response types

## Installation

```sh
npm install @k1eu/typed-request
```

```sh
yarn add @k1eu/typed-request
```

```sh
pnpm add @k1eu/typed-request
```

```sh
bun add @k1eu/typed-request
```

## Overview

Package can help you both on Frontend and Backend side of the application.
It provides `tf` function which is a drop in replacement for fetch but provides generic typing for the response.
For the headers it uses [SuperHeaders](https://github.com/mjackson/superheaders) which provides a typed API for the headers.

`tf` typed fetch function:

```ts
import { tf } from "@k1eu/typed-request";

type ResponseData = {
  data: {
    resourceId: string;
    title: string;
  };
};

export const handler = async (req: Request) => {
  const response = await tf<ResponseData>("https://example.com/api/resource", {
    headers: {
      contentType: "application/json",
    },
  }); // Typed with TypedResponse<ResponseData>
  const json = await response.json(); // Typed with ResponseData

  console.log(json.data.title); // ✅
  console.log(json.data.description); // ❌
};
```

TypedResponse and TypedRequest:

```ts
const Request = new TypedRequest<{
  data: {
    resourceId: string;
    title: string;
  };
}>("https://example.com");

const Response = new TypedResponse<{
  data: {
    resourceId: string;
    title: string;
  };
}>();

const response = await Request.json(); // Typed with { data: { resourceId: string; title: string; } }
const json = await Response.json(); // Typed with { data: { resourceId: string; title: string; } }
```

## License

See [LICENSE](https://github.com/k1eu/typed-request/blob/main/LICENSE)
npm package: @k1k0/schematics
Description: Nest - modern, fast, powerful node.js web framework (@schematics)
Latest version: 1.0.2

<p align="center">
  <a href="http://nestjs.com/" target="blank"><img src="https://nestjs.com/img/logo_text.svg" width="320" alt="Nest Logo" /></a>
</p>

  <p align="center">A progressive <a href="http://nodejs.org" target="blank">Node.js</a> framework for building efficient and scalable server-side applications.</p>
    <p align="center">
<a href="https://www.npmjs.com/~nestjscore"><img src="https://img.shields.io/npm/v/@nestjs/schematics.svg" alt="NPM Version" /></a>
<a href="https://www.npmjs.com/~nestjscore"><img src="https://img.shields.io/npm/l/@nestjs/schematics.svg" alt="Package License" /></a>
<a href="https://www.npmjs.com/~nestjscore"><img src="https://img.shields.io/npm/dm/@nestjs/schematics.svg" alt="NPM Downloads" /></a>
  <a href="https://coveralls.io/github/nestjs/nest?branch=master" target="_blank"><img src="https://coveralls.io/repos/github/nestjs/nest/badge.svg?branch=master#9" alt="Coverage" /></a>
<a href="https://discord.gg/G7Qnnhy" target="_blank"><img src="https://img.shields.io/badge/discord-online-brightgreen.svg" alt="Discord"/></a>
<a href="https://opencollective.com/nest#backer" target="_blank"><img src="https://opencollective.com/nest/backers/badge.svg" alt="Backers on Open Collective" /></a>
<a href="https://opencollective.com/nest#sponsor" target="_blank"><img src="https://opencollective.com/nest/sponsors/badge.svg" alt="Sponsors on Open Collective" /></a>
  <a href="https://paypal.me/kamilmysliwiec" target="_blank"><img src="https://img.shields.io/badge/Donate-PayPal-ff3f59.svg"/></a>
  <a href="https://twitter.com/nestframework" target="_blank"><img src="https://img.shields.io/twitter/follow/nestframework.svg?style=social&label=Follow"></a>

## Description

The Nest CLI is a command-line interface tool that helps you to initialize, develop, and maintain your Nest applications. It assists in multiple ways, including scaffolding the project, serving it in development mode, and building and bundling the application for production distribution. It embodies best-practice architectural patterns to encourage well-structured apps. Read more [here](https://docs.nestjs.com/cli/overview).

## Installation

```
$ npm install -g @nestjs/schematics
```

## Usage

Learn more in the [official documentation](https://docs.nestjs.com/).

## Stay in touch

- Website - [https://nestjs.com](https://nestjs.com/)
- Twitter - [@nestframework](https://twitter.com/nestframework)
npm package: @k1laba/st-datepicker
Description: Datepicker web component implementation with Stenciljs
Author: k1laba
Latest version: 1.7.5

![Built With Stencil](https://img.shields.io/badge/-Built%20With%20Stencil-16161d.svg?logo=data%3Aimage%2Fsvg%2Bxml%3Bbase64%2CPD94bWwgdmVyc2lvbj0iMS4wI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
  <script type="module" src="https://unpkg.com/@k1laba/st-datepicker/dist/st-datepicker/st-datepicker.esm.js"></script>
  <script nomodule="" src="https://unpkg.com/@k1laba/st-datepicker/dist/st-datepicker/st-datepicker.js"></script>
```

only one of them will be loaded for users

## Examples

To show date picker:

```
  <st-datepicker from="2010" to="2025"></st-datepicker>
```

subscribe to date change:

```
  window.onload = () => {
    const dateEl = document.querySelector('st-datepicker');
    const resultEl = document.querySelector('#date-result');
    dateEl.addEventListener('dateChanged', (e) => resultEl.innerHTML = e.detail.toDateString());
  };

```

get date from date picker:

```
  (async () => {
    resultEl.innerHTML = (await dateEl.getDate()).toDateString();
  })();
```

for more details on datepicker available parameters visit [st-datepicker](src/components/st-datepicker/readme.md)



To show date range picker:

```
  <st-daterangepicker></st-daterangepicker>
```

subscribe to date range change:

```
  window.onload = () => {
    const rangeEl = document.querySelector('st-daterangepicker');
    const rangeResultEl = document.querySelector('#range-result');
    rangeEl.addEventListener('dateChanged', (e) => {
      rangeResultEl.innerHTML = e.detail.start.toDateString() + ' - ' + e.detail.end.toDateString();
    });
  };

```

get date range from date range picker:

```
  (async () => {
    const rangeInfo = await rangeEl.getDateRange();
    rangeResultEl.innerHTML = rangeInfo.start.toDateString() + ' - ' + rangeInfo.end.toDateString();
  })();
```

for more details on daterangepicker available parameters visit [st-daterangepicker](src/components/st-daterangepicker/readme.md)
npm package: @k1low/textlint-rule-ja-indent-paragraph
Description: textlint rule to check paragraph indentation for Japanese text
Author: k1LoW
Latest version: 0.1.2

# textlint-rule-ja-indent-paragraph

日本語の段落字下げをチェックするtextlintルールです。

## Install

```bash
npm install @k1low/textlint-rule-ja-indent-paragraph
```

## Usage

Via `.textlintrc`:

```json
{
    "rules": {
        "@k1low/ja-indent-paragraph": true
    }
}
```

## Options

```json
{
    "rules": {
        "@k1low/ja-indent-paragraph": {
            "indentChar": "　",
            "indentSize": 1,
            "allowedStartChars": ["「", "『", "【", "〈", "《", "（", "(", "\"", "'", "―", "…"],
            "ignoreNodeTypes": ["BlockQuote", "Link", "Code", "Header", "ListItem"],
            "checkEachLine": false
        }
    }
}
```

### `indentChar`

字下げに使用する文字を指定します。

- **Type**: `string`
- **Default**: `"　"` (全角スペース)

### `indentSize`

字下げ文字の数を指定します。

- **Type**: `number`
- **Default**: `1`

### `allowedStartChars`

字下げなしで開始できる文字のリストを指定します。
これらの文字で始まる段落は、字下げがなくてもエラーになりません。

- **Type**: `string[]`
- **Default**: `["「", "『", "【", "〈", "《", "（", "(", "\"", "'", "―", "…"]`

### `ignoreNodeTypes`

無視するノードタイプを指定します。
これらのノード内の段落はチェックされません。

- **Type**: `string[]`
- **Default**: `["BlockQuote", "Link", "Code", "Header", "ListItem"]`

### `checkEachLine`

段落内の各行をチェックするかどうかを指定します。
`true` にすると、GFMスタイルの改行（段落内での改行）にも対応し、各行の先頭に字下げがあるかチェックします。

- **Type**: `boolean`
- **Default**: `false`

## Example

### Input

```markdown
これは字下げのない段落です。

　これは正しく字下げされた段落です。

「これは括弧で始まる段落です。」
```

### Output

```
1:1  error  段落の先頭に字下げ（1文字の全角スペース）がありません。  @k1low/ja-indent-paragraph
```

## Fixable

このルールは `--fix` オプションで自動修正できます。

```bash
textlint --fix README.md
```

## License

MIT