open-index/open-npm huggingface dataset:
npm package: @suyongs/use-request
Description: Data fetch library for React
Author: Su-Yong
Latest version: 0.5.0

# use-request
Zero dependency data fetch library for React

# Features
* Zero dependency
* Small bundle size (~30KB)
* Prevent useless rerender
* Support TypeScript
* Support ReactNative

# Installation
`npm install @suyongs/use-request`

or

`yarn add @suyongs/use-request`

# Usage
```tsx
interface Post {
  title: string;
  content: string;
  author: string;
}

const fetcher = async (url, body: Post): Promise<Post> => {
  const reponse = await fetch(url, {
    method: 'POST',
    body: JSON.stringify(body),
    headers: {
      'Content-Type': 'application/json',
    },
  });

  return response.json();
};

const Component = () => {
  const { data, fetcher } = useRequest('https://example.com/upload', { fetcher });

  const onClick = () => {
    fetcher({
      title: 'title',
      content: 'content',
      author: 'author',
    });
  }

  return (
    <div>
      {data && <div>Upload Success</div>}
      <button onClick={onClick}>Upload</button>
    </div>
  );
};
```

# [Document](https://su-yong.github.io/use-request)
Go to [Document](https://su-yong.github.io/use-request)

# [Contributors](https://github.com/Su-Yong/use-request/contributors)
|[Su-Yong](https://github.com/Su-Yong)|
|---|
|<img width="100px" height="100px" src="https://github.com/Su-Yong.png"/>|
npm package: @suyotech-dev/smartapi-js
Description: Unofficial sdk for smartapi angelone developed by suyotech.com
Author: https://suyotech.com
Latest version: 1.0.12

#Unofficial SDK for angelone.in smartapi

## Installation

### Note - Support only for ES6 modules. Commonjs not supported.

```bash
npm install @suyotech-dev/smartapi-js
```

```bash
const brokerid = "ABCD";
const mpin = "2025";
const apikey = "aklsdjflskd";
const totpkey = "AFDDFJDJLLEEIJD";

const api = new SmartApi(brokerid,mpin,apikey,totpkey);
await api.generateSession();
```