open-index/open-npm huggingface dataset:
npm package: @stoked-ui/proptypes
Description: Utilities supporting SUI libraries build and docs generation. This is an internal package not meant for general use.
Author: SUI Team
Latest version: 0.1.0

# @stoked-ui/proptypes

This is that code infra scripts for the SUI organization repositories.
It is not meant for general use.

## Scripts

- `build` - transpiles TypeScript files into the build directory.
- `release:publish` - builds the project and publishes it in the npm registry.
- `release:publish:dry-run` - builds the project and publishes it in a local registry accessible on port 4873 (this is the default port of Verdaccio private npm server).
- `test` - runs all the tests.
- `typescript` - checks validity of types.
npm package: @stoked-ui/timeline
Description: This package is the Community plan edition of the FileExplorer View components. It's part of [SUI X](https://stoked-ui.github.io/x/), an open-core extension of SUI Core, with advanced components.
Author: xzdarcy
Latest version: 0.1.4-a.0

# SUI X FileExplorer View

This package is the Community plan edition of the FileExplorer View components.
It's part of [SUI X](https://stoked-ui.github.io/x/), an open-core extension of SUI Core, with advanced components.

## Installation

Install the package in your project directory with:

```bash
npm install @stoked-ui/file-explorer
```

This component has the following peer dependencies that you will need to install as well.

```json
"peerDependencies": {
  "@mui/material": "^5.15.14",
  "react": "^17.0.0 || ^18.0.0",
  "react-dom": "^17.0.0 || ^18.0.0"
},
```

## Documentation

Visit [https://stoked-ui.github.io/x/react-fileExplorer-view/](https://stoked-ui.github.io/x/react-fileExplorer-view/) to view the full documentation.
npm package: @stokei/nestjs
Description: Stokei NestJS library.
Author: Douglas Pereira Bernardes
Latest version: 1.5.1

<div>
  <img width="100px" alt="Stokei-logo" src="https://stokei.com/logo.png" />
</div>

## Stokei NestJS core library

##### Description

Stokei NestJS core library.

## Installation

```bash
$ npm install
```

## Running the library

```bash
# development
$ npm run dev
```

## Test

```bash
# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov
```
npm package: @stollc/fetcher
Description: Fetcher is a lightweight wrapper around the Fetch API that includes request/response interceptors, error handling, and helper functions for common HTTP requests.
Author: Christoffer Stoll
Latest version: 1.0.9

# Fetcher - Simple Fetch Wrapper

Fetcher is a lightweight wrapper around the Fetch API that includes request/response interceptors, error handling, and helper functions for common HTTP requests.

## Installation

```sh
npm install @stollc/fetcher
```

## Usage

### Importing Fetcher

```javascript
import fetcher from "@stollc/fetcher";
```

### Setting Up Interceptors

```javascript
fetcher.interceptors.request = (payload) => {
  console.log("REQ", payload);
  return payload;
};

fetcher.interceptors.response = (response) => {
  console.log("RES", response);
  return response;
};

fetcher.interceptors.error = (error) => {
  console.log("ERR", error);
  return error;
};
```

### Making Requests

#### Generic Request

```javascript
const payload = {
  method: "post",
  url: "https://httpbin.org/post",
  body: JSON.stringify({ key: "value" }),
  responseType: "json", // json, text, blob, stream
  headers: { "Content-Type": "application/json" },
};

const result = await fetcher.request(payload);
```

#### Using Helper Functions

```javascript
const getResult = await fetcher.get("https://httpbin.org/get");
const postResult = await fetcher.post("https://httpbin.org/post", { name: "John Doe" });
const downloadResult = await fetcher.download("https://httpbin.org/download");
const uploadResult = await fetcher.upload("https://httpbin.org/upload", formData);
const streamResult = await fetcher.stream("https://httpbin.org/stream/10");
```

### Handling Streams

```javascript
const response = await fetcher.stream("https://httpbin.org/stream/10");

if (response.isError) {
  console.error("Stream Error:", response.error);
} else {
  const reader = response.data.getReader();
  const decoder = new TextDecoder();

  async function readStream() {
    while (true) {
      const { done, value } = await reader.read();
      if (done) break;
      console.log(decoder.decode(value));
    }
  }

  readStream();
}
```

## License

MIT