open-index/open-npm huggingface dataset:
npm package: @jmfetchify/fetchify
Description: A lightweight HTTP client library for client and server-side usage.
Author: Jose Martinez martinezcaceresjosem@gmail.com
Latest version: 1.0.8

# @jmfetchify/fetchify

**@jmfetchify/fetchify** is a lightweight and flexible HTTP request library for JavaScript/TypeScript applications. It provides simple configuration management, token-based authentication, and supports request and response interceptors. It works seamlessly on both client and server sides.

## Features

- Customizable HTTP request methods (GET, POST, PUT, PATCH, DELETE).
- Token management for authentication.
- Request and response interceptors.
- Supports both client-side (browser) and server-side (Node.js) usage.

## Installation

To install the library, run:

```bash
npm install @jmfetchify/fetchify
```
or
```bash
pnpm install @jmfetchify/fetchify
```

## USAGE

```typescript

import { Fetchify } from "@jmfetchify/fetchify";

const fetchifyInstance = Fetchify.create({
    baseURL: 'https://your-api-url.com',
    headers: {}
});

fetchifyInstance.setToken({ token: 'your-auth-token' });

fetchifyInstance.setRequestInterceptor(async (config) => {

    const token = localStorage.getItem("accessToken");

    if (token) {
        config.headers.set("Authorization", `Bearer ${token}`);
    }

    console.log("Request Interceptor:", config);

    return config;
});

// Example GET request
fetchifyInstance.GET({ endpoint: 'users' }).then(response => {

    console.log('Users:', response);

}).catch(error => {

    console.error('Error fetching users:', error);

});
```

## API Methods

### setToken
Sets the authentication token for the requests.

```typescript
setToken({ token: string })
```

### `setRequestInterceptor`
Sets a request interceptor to modify the request before it is sent.

```typescript
setRequestInterceptor(interceptor: (config: Request) => Promise<Request>)
```

### setResponseInterceptor
Sets a response interceptor to modify the response before it is returned to the caller.
```typescript
setResponseInterceptor(interceptor: <T>(response: T) => Promise<T>)
```

### GET
Sends a GET request to the specified endpoint.
```typescript
GET<T>({ endpoint: string, options?: RequestInit, timeOut?: number })
```

### POST
Sends a POST request to the specified endpoint with the given body.
```typescript
POST<T>({ endpoint: string, body?: unknown, options?: RequestInit, timeOut?: number })
```

### PUT
Sends a PUT request to the specified endpoint with the given body.

```typescript
PUT<T>({ endpoint: string, body?: unknown, options?: RequestInit, timeOut?: number })
```

### PATCH
Sends a PATCH request to the specified endpoint with the given body.
```typescript
PATCH<T>({ endpoint: string, body?: unknown, options?: RequestInit, timeOut?: number })
```

### DELETE
Sends a DELETE request to the specified endpoint.
```typescript
DELETE<T>({ endpoint: string, options?: RequestInit, timeOut?: number })
```
## License
This project is licensed under the MIT License. See the [LICENSE](./LICENSE) file for details.
npm package: @jmfirth/lit-html-redux
Description: [![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier) [![Greenkeeper badge](https://badges.greenkeeper.io/alexjoverm/typescript-library-starter.svg)](https://greenkeeper.io/) [![Travi
Author: Justin Firth
Latest version: 0.0.4

# lit-html-redux

[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier)
[![Greenkeeper badge](https://badges.greenkeeper.io/alexjoverm/typescript-library-starter.svg)](https://greenkeeper.io/)
[![Travis](https://img.shields.io/travis/alexjoverm/typescript-library-starter.svg)](https://travis-ci.org/alexjoverm/typescript-library-starter)
[![Coveralls](https://img.shields.io/coveralls/alexjoverm/typescript-library-starter.svg)](https://coveralls.io/github/alexjoverm/typescript-library-starter)
[![Dev Dependencies](https://david-dm.org/alexjoverm/typescript-library-starter/dev-status.svg)](https://david-dm.org/alexjoverm/typescript-library-starter?type=dev)
[![Donate](https://img.shields.io/badge/donate-paypal-blue.svg)](https://paypal.me/AJoverMorales)

Redux bindings for [`lit-html`](https://github.com/Polymer/lit-html).

### Usage

```bash
git clone https://github.com/jmfirth/lit-html-redux.git
cd lit-html-redux

yarn install
```

### Scripts

 - `npm t`: Run test suite
 - `npm start`: Run `npm run build` in watch mode
 - `npm run test:watch`: Run test suite in [interactive watch mode](http://facebook.github.io/jest/docs/cli.html#watch)
 - `npm run test:prod`: Run linting and generate coverage
 - `npm run build`: Generate bundles and typings, create docs
 - `npm run lint`: Lints code
 - `npm run commit`: Commit using conventional commit style ([husky](https://github.com/typicode/husky) will tell you to use it if you haven't :wink:)


### Automatic releases

_**Prerequisites**: you need to create/login accounts and add your project to:_
 - [npm](https://www.npmjs.com/)
 - [Travis CI](https://travis-ci.org)
 - [Coveralls](https://coveralls.io)

_**Prerequisite for Windows**: Semantic-release uses
**[node-gyp](https://github.com/nodejs/node-gyp)** so you will need to
install
[Microsoft's windows-build-tools](https://github.com/felixrieseberg/windows-build-tools)
using this command:_

```bash
npm install --global --production windows-build-tools
```
npm package: @jmfirth/react-use-form-validation
Description: Generic form validation hook for React.
Author: jmfirth
Latest version: 1.0.1

# @jmfirth/react-use-form-validation

> Generic form validation hook for React.

[![NPM](https://img.shields.io/npm/v/@jmfirth/react-use-form-validation.svg)](https://www.npmjs.com/package/@jmfirth/react-use-form-validation)

## Install

```bash
npm install --save @jmfirth/react-use-form-validation
```

## Usage

See the [demo LoginForm](example/src/LoginForm.tsx) for a usage example.

## Development

Install dependencies:

```sh
$ yarn install
$ cd example && yarn install && cd ..
```

Run the development environment:

```sh
$ yarn start
```

## License

MIT © [Justin Firth](https://github.com/jmfirth)
npm package: @jmfrancese/table
Description: Table for Editor.js
Author: CodeX Team
Latest version: 2.2.3

# Table tool

The Table Block for the [Editor.js](https://editorjs.io). Finally improved.

![](https://capella.pics/41294cec-a2b3-4157-8399-ffefed3d8ffd.jpg)

## Installation

Get the package

```shell
npm i --save @editorjs/table
```
or

```shell
yarn add @editorjs/table
```

## Usage

Add a new Tool to the `tools` property of the Editor.js initial config.

```javascript
import Table from '@editorjs/table';

var editor = EditorJS({
  tools: {
    table: Table,
  }
});
```

Or init the Table tool with additional settings

```javascript
var editor = EditorJS({
  tools: {
    table: {
      class: Table,
      inlineToolbar: true,
      config: {
        rows: 2,
        cols: 3,
      },
    },
  },
});
```

## Config Params

| Field              | Type     | Description          |
| ------------------ | -------- | ---------------------------------------- |
| `rows`             | `number` | initial number of rows. `2`  by default |
| `cols`             | `number` | initial number of columns. `2` by default |
| `withHeadings`             | `boolean` | toggle table headings. `false` by default |

## Output data

This Tool returns `data` in the following format

| Field          | Type         | Description           |
| -------------- | ------------ | ----------------------------------------- |
| `withHeadings` | `boolean`    | Uses the first line as headings |
| `content`      | `string[][]` | two-dimensional array with table contents |

```json
{
  "type" : "table",
  "data" : {
    "withHeadings": true,
    "content" : [ [ "Kine", "Pigs", "Chicken" ], [ "1 pcs", "3 pcs", "12 pcs" ], [ "100$", "200$", "150$" ] ]
  }
}
```

# Support maintenance 🎖

If you're using this tool and editor.js in your business, please consider supporting their maintenance and evolution.

[http://opencollective.com/editorjs](http://opencollective.com/editorjs)

# About CodeX

<img align="right" width="120" height="120" src="https://codex.so/public/app/img/codex-logo.svg" hspace="50">

CodeX is a team of digital specialists around the world interested in building high-quality open source products on a global market. We are [open](https://codex.so/join) for young people who want to constantly improve their skills and grow professionally with experiments in leading technologies.

| 🌐 | Join  👋  | Twitter | Instagram |
| -- | -- | -- | -- |
| [codex.so](https://codex.so) | [codex.so/join](https://codex.so/join) |[@codex_team](http://twitter.com/codex_team) | [@codex_team](http://instagram.com/codex_team) |