open-index/open-npm huggingface dataset:
npm package: @itsmistad/network.js
Description: A simple Ajax and SignalR networking wrapper.
Author: itsmistad
Latest version: 1.0.1

## network.js

This is a simple Ajax and SignalR networking wrapper that simplifies server-client communication in lightweight web applications.

_Note:_ This library requires ASP.NET *Core* SignalR. Without SignalR, only `network.post` and `network.get` will work.

### Importing

#### CDN

In your .html file, add this to your `<head>` tag
```html
<!-- Required Dependencies --->
<script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
<!-- Optional Dependencies --->
<script src="https://cdnjs.cloudflare.com/ajax/libs/aspnet-signalr/1.1.4/signalr.min.js"></script>
<!-- notify.js --->
<script src="https://cdn.mistad.net/network.js"></script>
```

### Usage

#### SignalR

Initialize a connection to your hub:
`network.init([hub path string])`
```js
network.init('/route/to/hub/');
```

Register any expected events:
`network.on([event], [action callback)`
```js
network.on('eventName', obj => {
    var result = JSON.stringify(obj);
    console.log(result);
});
```

Start the connection to your hub:
`network.connect([action callback])`
```js
network.connect(err => {
    if (err) console.error(err);
});
```

Invoke the event on your server's hub:
`network.send([event], [json object], [error callback])`
```js
network.send('eventName', obj, err => {
    console.error(err);
});
```

#### Ajax (POST/GET)

Submit a POST request: 
`network.post([path], [payload], [action callback])`
```js
network.post('/route/to/method', obj, response => {
    var result = JSON.stringify(response);
    console.log(result);
});
```

Submit a GET request: 
`network.get([path], [optional payload], [action callback])`
```js
network.get('/route/to/method', obj, response => {
    var result = JSON.stringify(response);
    console.log(result);
});
```
npm package: @itsmnthn/big-utils
Description: Utils for BigInt manipulation and formatting for DeFi/Blockchain applications(DAPPS).
Author: Manthankumar Satani
Latest version: 2.0.3

# BigInt Utils for DApps

Utils for BigInt manipulation and formatting for DeFi/Blockchain applications(DAPPS).

**ESM:** 50.77 kB &nbsp;│&nbsp; **gzip**: 13.81 kB
<br>
**CJS:** 52.37 kB &nbsp;│&nbsp; **gzip**: 14.07 kB

## Installation

```bash
pnpm add @itsmnthn/big-utils@latest
yarn add @itsmnthn/big-utils@latest
npm install @itsmnthn/big-utils@latest
bun add @itsmnthn/big-utils@latest
```

## Quick Start

```typescript
import {
  // Core math functions
  bigAbs,
  bigGcd,
  bigLog2Scaled,

  // Advanced arithmetic
  bigMulDivTrunc,
  bigPow10,
  // Scaling & formatting
  bigScale,

  bigSqrtScaled,
  bigUnscale,
  // DeFi utilities
  calcTotalPrice,

  calcUnitPrice,
  formatAmount,
  formatWithComma,
} from '@itsmnthn/big-utils'

// Calculate token price with 18 decimals
const price = calcTotalPrice(1000000000000000000n, 1500000000n, 18, 9)
// Result: 1500000000000000000n (1.5 USD with 9 decimals)

// Format for display
const displayPrice = formatAmount(price, 9, 2)
// { base: 1500000000000000000n, display: '1.50', formatted: '1.5' }
```

## Key Features

- ✅ **Zero Dependencies** - Pure BigInt operations
- ✅ **Tree-Shakeable** - Import only what you need
- ✅ **TypeScript First** - Full type safety
- ✅ **High Performance** - Optimized BigInt operations
- ✅ **DeFi Ready** - Token price calculations, formatting
- ✅ **Modular Design** - Clean, maintainable architecture

## Migration from v1.x

`coming soon`

> There are breaking changes in v2.0.0. some function renamed & some parameters changed.

## Documentation

[📚 v1 API Documentation](https://big-utils.pages.dev/)

---

Made with ❤️ for the DeFi ecosystem