open-index/open-npm huggingface dataset:
npm package: @sbhtta/tiny
Description: Remove all spaces from a string
Latest version: 2.2.0

[![npm version](https://badge.fury.io/js/%40sbhtta%2Ftiny.svg)](https://badge.fury.io/js/%40sbhtta%2Ftiny)
[![GitHub issues](https://img.shields.io/github/issues/sbhtta/tiny)](https://github.com/sbhtta/tiny/issues)

# tiny
tiniest npm module

## Install

```
$ npm install @sbhtta/tiny
```

## Usage

```js
const tiny = require("@sbhtta/tiny");

tiny("So much space!");
//=> "Somuchspace!"

tiny(1337);
//=> Uncaught TypeError: Tiny wants a string!
//    at tiny (<anonymous>:2:41)
//    at <anonymous>:1:1
```
npm package: @sbimochan/har-to-mocks
Description: Extract response from .har file and create JSON mocks for mock server.
Author: Bimochan Shrestha
Latest version: 0.0.3

har-to-mocks
============

Extract response from .har file and create JSON mocks for mock server.

[![Version](https://img.shields.io/npm/v/har-to-mocks.svg)](https://npmjs.org/package/har-to-mocks)
[![Downloads/week](https://img.shields.io/npm/dw/har-to-mocks.svg)](https://npmjs.org/package/har-to-mocks)
[![License](https://img.shields.io/npm/l/har-to-mocks.svg)](https://github.com/peterknezek/har-to-mocks/blob/master/package.json)

## Install CLI
```
npm install -g har-to-mocks
```

or by npx

```
npx har-to-mocks [path to .har] [path mock/api folder] --dry-run
```

## How does it work?

### Inspect and filter requests in .har files

File can contain hundreds of requests so it's important to be able filter data. For filtering you can use flags:
- (`--url`) for filtering by match in the url. Search is case sensitive
- (`-m`, `--method=GET --method=POST`) for filter specific method. Supported: 'GET', 'POST', 'PUT', 'DELETE' and 'PATCH' methods. Default value is 'GET'. 
- (`-t`, `--type=xhr`) for filtering request type. Default value is 'xhr'

Video example: [YouTube har-to-mocks@1.1.1](https://youtu.be/Pc2J8aHRKNY).

example:
```
$ har-to-mocks ./file.har --url=api/service  --method=GET
```
will display:
```
Filtered requests:

 Name                    Method Path                        
 ─────────────────────── ────── ─────────────────────────── 
 userRoles               GET    /api/service/userRoles      
 currentUserId           GET    /api/service/currentUserId  
 active                  GET    /api/service/clients/active 
```

If output folder is not specified mocks will not be written.


### Extract data from .har to mock/api folder

The second argument should be path to `mock`'s folder. Export structure is prepared for [mocks-to-msw](https://github.com/peterknezek/mocks-to-msw) which helps with integration with MSW (Mock Service Worker) and [connect-api-mocker](https://www.npmjs.com/package/connect-api-mocker). 

WARNING: When second argument is defined cli will write files. To avoid unwanted overwrite use `--dry-run` flag to skip writing part of process.

example:
```
$ har-to-mocks ./file.har ./mocks --url=api/service  --method=GET --dry-run
```
will display:
```
Filtered requests:

 Name                    Method Path                        
 ─────────────────────── ────── ─────────────────────────── 
 userRoles               GET    /api/service/userRoles      
 currentUserId           GET    /api/service/currentUserId  
 active                  GET    /api/service/clients/active 

Folder tree which will be applied:

└─ mocks
   └─ api
      └─ service
         ├─ userRoles
         │  └─ GET.json
         ├─ currentUserId
         │  └─ GET.json
         └─ clients
            └─ active
               └─ GET.json

No files were written. If you want to write files remove the (--dry-run) flag.
```
npm package: @sbimochan/pathify
Description: A lightweight utility that recursively walks through a nested JavaScript object and replaces all leaf values with their corresponding dot-notation paths.
Author: Bimochan Shrestha
Latest version: 1.1.0

# pathify

> Generate dot-notated key paths from deeply nested JavaScript objects — clean, recursive, and zero dependencies.

---

## ✨ Features

- 🔁 Recursively walks any nested object
- 📌 Replaces all leaf values with their full dot-notation paths
- 🧼 Preserves original object structure
- 🪶 Lightweight — no dependencies
- ⚙️ Optional base path prefix

---

## 📦 Install

```bash
npm install @sbimochan/pathify
```

## Test

```bash
npm run test
```

## Usage

```javascript
const input = {
  user: {
    profile: {
      name: '',
      age: ''
    },
    settings: {
      theme: ''
    }
  }
};
```

### Expected output

```javascript
{
  user: {
    profile: {
      name: 'user.profile.name',
      age: 'user.profile.age'
    },
    settings: {
      theme: 'user.settings.theme'
    }
  }
}
```
npm package: @sbinft/contracts
Description: Open source contracts by SBINFT
Author: SBINFT
Latest version: 1.24.6

# @sbinft/contracts
Open source contracts by SBINFT

# Installation

```
yarn add @sbinft/contracts
```

# Usage
## [contracts](https://github.com/gobase/sbinft-contracts/tree/master/contracts)

```solidity
pragma solidity ^0.8.0;

import "@sbinft/contracts/upgradeable/access/AdminUpgradeable.sol";

contract Mock is AdminUpgradeable {}
```

you can use the functions in the imported contracts.

```solidity
contract Mock is AdminUpgradeable {
    function myFunction() public {
        // some code...

        addAdmin([address1,address2]) // <- `addAdmin` is defined in AdminUpgradeable.sol

        // ...some code
    }
}
```

## [abi](https://github.com/gobase/sbinft-contracts/tree/master/abi/)

you can import abi from `@sbinft/contracts/abi`.

``` javascipt
const { abi, } = require("@sbinft/contracts/abi/sbinft/market/v1/exchange/Exchange.sol/Exchange.json");

// OR
const exchangeJSON = require("@sbinft/contracts/abi/sbinft/market/v1/exchange/Exchange.sol/Exchange.json");

console.log(abi);
console.log(exchangeJSON.abi);
```

# [constants](https://github.com/gobase/sbinft-contracts/tree/master/constant)
It contains address and data type definition for signing using EIP-712.
### Supported network:

| Network Name                  | Network ID    |
| ----------------------------- | ------------- |
| Ethereum Mainnet              | 1             |
| Ethereum Testnet (Sepolia)    | 11155111      |
| Polygon Mainnet               | 137           |
| Polygon Testnet (Amoy)        | 80002         |
| Avalanche Mainnet             | 43114         |
| Avalanche Testnet (Fuji)      | 43113         |
| Oasys Hub L1 Mainnet          | 248           |
| Oasys Hub L1 Testnet          | 9372          |
| HOME Verse Mainnet            | 19011         |
| HOME Verse Testnet            | 40875         |
| TCG Verse Mainnet             | 2400          |
| TCG Verse Testnet             | 12005         |
| MCH Verse Mainnet             | 29548         |
| MCH Verse Testnet             | 420           |
| GESO Verse Mainnet            | 428           |
| GESO Verse Testnet            | 42801         |

### Its divided into:
- GATEWAY_V1
  - `SBINFTForwarder` : *Upgradable*
  - `SBINFTMultiCall` : *Upgradable*
- MARKET_V1
  -  `Exchange` : *Upgradable*
  -  `RoyaltyRegistry` : *Upgradable*
  -  `TransferProxy` : *Upgradable*
  -  `PlatformRegistry` : *Upgradable*
- COLLECTION
  -  `NANAKUSA_FACTORY`

For Upgradable contracts use proxy address `[CONST].address.[NETWORK].proxy.[CONTRACT_NAME]` to call the contract.