open-index/open-npm huggingface dataset:
npm package: @mitz-it/nest-http
Description: Multiples http clients for NestJS
Author: Mitz IT
Latest version: 1.0.1

<h1 align="center">
     🐈 <a href="#" alt="">Nest Http</a>
</h1>

<h3 align="center">
  💉 Injecting multiple http clients into a module
</h3>

## Table of contents

<!--ts-->

- [Installation](#installation)
- [How to use](#-how-to-use)
  - [Example](#example)
- [To Do](#to-do)
- [License](#-license)

<!--te-->

## 💡Installation

`npm i @mitz-it/nest-http` or `yarn add @mitz-it/nest-http`

## 👨‍💻 How to use

You must import it into your module and enter the name and value of your base url as configuration. It will create the client instance for your bases url (Currently it only has the axios client)

### Example

In the module I must import the `HttpModule` and configure the clients, example of use:

```ts
import { Module } from '@nestjs/common';
import { HttpModule } from '@mitz-it/nest-http';

import { AppController } from './app.controller';
import { AppService } from './app.service';

@Module({
  imports: [
    HttpModule.register([
      {
        name: 'brasilApi',
        config: {
          baseURL: 'https://brasilapi.com.br/api/cnpj/v1',
        },
      },
      {
        name: 'viaCep',
        config: {
          baseURL: 'https://viacep.com.br/ws',
        },
      },
    ]),
  ],
  controllers: [AppController],
  providers: [AppService],
})
export class AppModule {}
```

I generated two clients, one pointing to BrasilApi and the other to ViaCep. One to search for information about a Brazilian company, and another to search for address information based on zip code.

In my repository, I need to inject the `HttpService` and use it normally:

```ts
import { Injectable } from '@nestjs/common';

import { HttpClientFactory } from '@mitz-it/nest-http';

@Injectable()
export class AppService {
  constructor(private readonly factory: HttpClientFactory) {}

  async findCompany(document: string): Promise<any> {
    try {
      const client = this.factory.createClient('brasilApi');
      const response = await client.get(`/${document}`);

      return response.data;
    } catch (error) {
      throw new Error(error);
    }
  }

  async findAddress(cep: string): Promise<any> {
    try {
      const client = this.factory.createClient('viaCep');
      const response = await client.get(`/${cep}/json`);

      return response.data;
    } catch (error) {
      throw new Error(error);
    }
  }
}
```

In the `findCompany` method, you searched for the client configured for `brasilApi` and in the `findAddress` method, you searched for the client configured for `viaCep`, making your respective requests.

## 📑To Do

- [ ] Add tests
- [ ] Add examples
- [ ] Add multiple http clients (axios, fetch api...)

## 📝 License

This project is licensed [MIT](./LICENSE.md).
npm package: @mitz-it/nest-log
Description: Custom log for NestJS
Author: Mitz IT
Latest version: 1.1.1

<h1 align="center">
     🐈 <a href="#" alt="">Nest Log</a>
</h1>

<h3 align="center">
  🔍 Get logs in JSON format for your logs
</h3>

## Table of contents

<!--ts-->

- [Installation](#installation)
- [License](#-license)

<!--te-->

## 💡Installation

`npm i @mitz-it/nest-log` or `yarn add @mitz-it/nest-log`

## 👨‍💻 How to use

You must import it into your module and use Logger to log in JSON format.

### Example

## 📝 License

This project is licensed [MIT](./LICENSE.md).
npm package: @mitzswap/sdk
Description: 🛠 An SDK for building applications on top of Pancakeswap.
Author: agin dropdisco
Latest version: 0.0.2

# Pancakeswap SDK

Forked from the [Uniswap SDK](https://github.com/Uniswap/uniswap-v2-sdk/commit/a88048e9c4198a5bdaea00883ca00c8c8e582605).

You can refer to the Uniswap SDK documentation [uniswap.org](https://uniswap.org/docs/v2/SDK/getting-started/).

## Running tests

To run the tests, follow these steps. You must have at least node v10 and [yarn](https://yarnpkg.com/) installed.

First clone the repository:

```sh
git clone https://github.com/pancakeswap/pancake-swap-sdk.git
```

Move into the pancakeswap-sdk working directory

```sh
cd pancakeswap-sdk/
```

Install dependencies

```sh
yarn install
```

Run tests

```sh
yarn test
```

You should see output like the following:

```sh
yarn run v1.22.4
$ tsdx test
 PASS  test/constants.test.ts
 PASS  test/pair.test.ts
 PASS  test/fraction.test.ts
 PASS  test/miscellaneous.test.ts
 PASS  test/entities.test.ts
 PASS  test/trade.test.ts

Test Suites: 1 skipped, 6 passed, 6 of 7 total
Tests:       3 skipped, 82 passed, 85 total
Snapshots:   0 total
Time:        5.091s
Ran all test suites.
✨  Done in 6.61s.
```
npm package: @miuiu/postgrest
Description: Isomorphic PostgREST client
Author: Supabase
Latest version: 1.3.0

# `postgrest-js`

[![Build](https://github.com/supabase/postgrest-js/workflows/CI/badge.svg)](https://github.com/supabase/postgrest-js/actions?query=branch%3Amain)
[![Package](https://img.shields.io/npm/v/@supabase/postgrest-js)](https://www.npmjs.com/package/@supabase/postgrest-js)
[![License: MIT](https://img.shields.io/npm/l/@supabase/postgrest-js)](#license)

Isomorphic JavaScript client for [PostgREST](https://postgrest.org). The goal of this library is to make an "ORM-like" restful interface.

Full documentation can be found [here](https://supabase.github.io/postgrest-js/v2).

### Quick start

Install

```bash
npm install @miuiu/postgrest
```

Usage

```js
import { PostgrestClient } from '@supabase/postgrest-js'

const REST_URL = 'http://localhost:3000'
const postgrest = new PostgrestClient(REST_URL)
```

- select(): https://supabase.com/docs/reference/javascript/select
- insert(): https://supabase.com/docs/reference/javascript/insert
- update(): https://supabase.com/docs/reference/javascript/update
- delete(): https://supabase.com/docs/reference/javascript/delete

#### Custom `fetch` implementation

`postgrest-js` uses native `fetch` api to make HTTP requests, but an alternative `fetch` implementation can be provided as an option.

## License

This repo is licensed under MIT License.

## Sponsors

We are building the features of Firebase using enterprise-grade, open source products. We support existing communities wherever possible, and if the products don’t exist we build them and open source them ourselves. Thanks to these sponsors who are making the OSS ecosystem better for everyone.

[![New Sponsor](https://user-images.githubusercontent.com/10214025/90518111-e74bbb00-e198-11ea-8f88-c9e3c1aa4b5b.png)](https://github.com/sponsors/supabase)