open-index/open-npm huggingface dataset:
npm package: @paw-digital/pawjs
Description: JavaScript utilities for the paw cryptocurrency.
Latest version: 1.0.1

# pawjs

JavaScript utilities for the paw cryptocurrency.

make sure to use `npm i @pawdigital/pawjs@latest` to get the latest version.

now includes Ledger Nano S/X Support in a different project:
    https://github.com/paw-digital/pawjs-hw

# simple paw functions

```js
const run = async () => {
  const pawjs = require('@paw-digital/pawjs');
  pawjs.setPawNodeApiUrl('https://kaliumapi.appditto.com/api');

  const crypto = require('crypto');
  const seed = crypto.randomBytes(32).toString('hex');
  const privateKey = pawjs.getPrivateKey(seed, 0);
  const publicKey = await pawjs.getPublicKey(privateKey);
  const account = pawjs.getPawAccount(publicKey);

  pawjs.getAccountInfo(account).then((res) => console.log(res));
};
run();
```

# examples of most functions as part of the cli

  <https://github.com/paw-digital/pawjs/blob/master/main.js>

# simple browser integration

  https://paw-digital.github.io/pawjs/web/

# description on how to do browser integration

  <https://github.com/paw-digital/pawjs/blob/master/docs/paw-client-side.md>

# complete documentation of all functions

  <https://github.com/paw-digital/pawjs/blob/master/docs/documentation.md>

# notes on using CLI:
  please remember to install and test before running the CLI.
```
  npm i;

  #test on osx/linux
  npm test;

  # test on windows.
  npm run win-test;

  npm start;
```

# complete documentation of camo CLI functions

  <https://github.com/paw-digital/pawjs/blob/master/docs/camo-paw-cli.md>

# complete documentation of paw CLI functions

  <https://github.com/paw-digital/pawjs/blob/master/docs/paw-cli.md>

# complete documentation of nano CLI functions

  <https://github.com/paw-digital/pawjs/blob/master/docs/nano-cli.md>
npm package: @paw-wallet/game
Description: 🛠 An Game <> Wallet SDK - PanWallet
Author: kiemtran
Latest version: 0.0.16

# Sdk For Game <> Wallet to interact with each other
- Make sure the game open via iframe
- Game <> Wallet interact via postMessage event. 
  
# How to install local
- Create file `.npmrc` in the root folder, with the content:
```
@digi-money:registry=https://npm.pkg.github.com
//npm.pkg.github.com/:_authToken=your_token
```
- Visit https://github.com/settings/tokens to create Classic Token if you don't have (at least has role `read:packages`)
- Ping admin to add to whitelist [at this link](https://github.com/orgs/digi-money/packages/npm/game/settings)
- Run `npm install @digi-money/game`


# Install via git workflow
- Add `registry-url`,`scope` and `NODE_AUTH_TOKEN`

```
   ...
   - name: Set up Node.js
        uses: actions/setup-node@v1
        with:
          node-version: 20.x
          registry-url: 'https://npm.pkg.github.com'
          scope: '@digi-money'
   ...

   - name: Install dependencies
      uses: bahmutov/npm-install@HEAD
      env:
         NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} ### authen npm
   ...

```
- Add your repo to `Manage Actions access` in [at this link](https://github.com/orgs/digi-money/packages/npm/game/settings)
   
# How to use
#### Basic usage
```javascript

const config = {
  gameId: GAME_IDS.ROBOT_CAT
}
const panGameInstance = new PanGame(config); // Make sure call this line once

// connect wallet
const requestId = panGameInstance.connectWallet({
  chainId: ChainId.SOLANA,
  gameInfo: {
    name: "Game Robot & Cat",
    logoUrl: "https://your_logo.png",
  },
});

// to get data
const requestId = panGameInstance.getData({
      chainId: ChainId.SOLANA,
      method: ROBOT_CAT_GAME_FUNCTIONS.fetchPlayer,
      payload: {}
});

// to update data
const requestId = panGameInstance.updateData({
   chainId: ChainId.SOLANA,
   method: ROBOT_CAT_GAME_FUNCTIONS.upgrade,
   payload: {} // payload of upgrade function
});

// to estimate gas
const requestId = panGameInstance.estimateGasUpdateData({
   chainId: ChainId.SOLANA,
   method: ROBOT_CAT_GAME_FUNCTIONS.upgrade,
   payload: {} // payload of upgrade function
});

```

#### Use by specific usecase
- See the code example at [here](https://github.com/nguyenhoaidanh/demo-game/blob/main/src/App.tsx)
- Demo: Visit at here [https://t.me/danh_wallet_bot/wallet](https://t.me/danh_wallet_bot/wallet), and click to a game
  <img width="437" alt="image" src="https://github.com/digi-money/pan-wallet-sdk/assets/33005392/cd5af42b-11c9-4e16-aeaa-325ea0797a7a">



# How to publish this package
- Create file `.npmrc` in root folder, with content same as above
- Update version in package.json
- Run `npm publish`
- Check [here](https://github.com/digi-money/pan-wallet-sdk/pkgs/npm/game)
npm package: @paw-wallet/wallet
Description: 🛠 An Wallet SDK - PanWallet
Author: kiemtran
Latest version: 0.1.0

# Sdk Wallet
- Support a single type of wallet or multi type of wallet
- Create/Import wallet
- Some basic functions of a wallet: signMessage, transferToken, ...

# How to install local
- Create file `.npmrc` in the root folder, with the content:
```
@digi-money:registry=https://npm.pkg.github.com
//npm.pkg.github.com/:_authToken=your_token
```
- Visit https://github.com/settings/tokens to create Classic Token if you don't have (at least has role `read:packages`)
- Ping admin to add to whitelist [at this link](https://github.com/orgs/digi-money/packages/npm/wallet/settings)
- Run `npm install @digi-money/wallet`


# Install via git workflow
- Add `registry-url`,`scope` and `NODE_AUTH_TOKEN`

```
   ...
   - name: Set up Node.js
        uses: actions/setup-node@v1
        with:
          node-version: 20.x
          registry-url: 'https://npm.pkg.github.com'
          scope: '@digi-money'
   ...

   - name: Install dependencies
      uses: bahmutov/npm-install@HEAD
      env:
         NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} ### authen npm
   ...

```
- Add your repo to `Manage Actions access` in [at this link](https://github.com/orgs/digi-money/packages/npm/wallet/settings)
   
# How to use
#### Initialize SDK
- Make sure call these lines once
```javascript
const config = {
   debug: true, // enable logging to debug 
   userId: 'your_id', // telegram userId
   getEncryptionKeyFn, // a function to get encryption key
}

// if your wallet support only 1 type of wallet:
const walletInstance = new EvmWallet(config)
// or
const walletInstance = new SolanaWallet(config)

// if your wallet support (or will support) multi-type wallet at the same time, we suggest you use this `MultiChainWallet`
const walletInstance = new MultiChainWallet(config)

```

#### Use by specific usecase
- See the code example at here: [https://github.com/digi-money/pan-wallet-sdk/tree/main/src/test](https://github.com/digi-money/pan-wallet-sdk/tree/main/src/test)


# How to publish this package
- Create file `.npmrc` in root folder, with content same as above
- Update version in package.json
- Run `npm publish`
- Check [here](https://github.com/digi-money/pan-wallet-sdk/pkgs/npm/wallet)
npm package: @pawan-pk/react-native-advance-video-player
Description: @pawan-pk/react-native-advance-video-player is a next-gen React Native video player supporting HLS and HTTP streaming for smooth, high-quality playback, with easy integration and customizable features for a seamless media experience.
Author: Pawan Kumar Kushwaha
Latest version: 0.2.0

# react-native-advance-video-player

react-native-advance-video-player is a next-gen React Native video player supporting HLS and HTTP streaming for smooth, high-quality playback, with easy integration and customizable features for a seamless media experience.

## Installation

```sh
npm install react-native-advance-video-player
```

## Usage


```js
import { AdvanceVideoPlayerView } from "react-native-advance-video-player";

// ...

<AdvanceVideoPlayerView color="tomato" />
```


## Contributing

See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.

## License

MIT

---

Made with [create-react-native-library](https://github.com/callstack/react-native-builder-bob)
npm package: @pawan-pk/react-native-android-activity
Description: Simple package to handle android activities.
Author: Pawan Kumar Kushwaha
Latest version: 0.1.2

# react-native-android-activity

Simple package to handle android activities.

## Installation

```sh
npm install @pawan-pk/react-native-android-activity
```

## Usage

```js
import { startActivity } from '@pawan-pk/react-native-android-activity';

// ...

startActivity(
  1,
  'androidactivity.example.SecondActivity',
  'androidactivity.example' // Optional package name for same app activity
);
```

## Contributing

- [Development workflow](CONTRIBUTING.md#development-workflow)
- [Sending a pull request](CONTRIBUTING.md#sending-a-pull-request)
- [Code of conduct](CODE_OF_CONDUCT.md)

## License

MIT

---

Made with [create-react-native-library](https://github.com/callstack/react-native-builder-bob)
npm package: @pawan-y_the_great_coder/ssc
Description: Space Script Compiler (Ultra Lightweight GUI-friendly Language)
Author: Pawan Y
Latest version: 1.0.0

# SpaceScript

A simple programming language that loves whitespaces! SpaceScript features straightforward syntax, GUI capabilities through HTML and Electron, and JavaScript interoperability.

## Installation for devs

1. Make sure you have Node.js installed
2. Install the required dependencies:
   ```
   npm install electron
   ```
3. Save the `spacescript.js` interpreter file

## Features

- Whitespace-friendly syntax
- Basic conditional statements
- Function definitions and calls
- String operations
- GUI capabilities through HTML rendering with Electron
- JavaScript integration via `extern "JS"` blocks

## Running a SpaceScript Program

```bash
node spacescript.js your-program.ss
```

## Syntax Examples

### Basic Printing
```
println "Hello, World!"
```

### Conditionals
```
if 10 > 0 {
  println "10 is greater than 0"
}
```

### Functions
```
function greet ( name ) {
  return println "Hello, " + name + "!"
}

greet "User"
```

### HTML GUI
```
html ( "<!DOCTYPE html>
<html>
<body>
  <h1>SpaceScript GUI</h1>
  <p>This is rendered using Electron!</p>
</body>
</html>" )
```

### JavaScript Integration
```
extern "JS" {
  function customFunction() {
    console.log("This is JavaScript code!");
  }
  
  customFunction();
}
```

## How It Works

SpaceScript tokenizes input code while preserving string literals. It respects whitespace as separators between tokens, making the lexer very simple, but handles quoted strings properly so they aren't split by whitespaces within them.

The HTML rendering feature saves HTML content to a temporary file and launches it with Electron, providing GUI capabilities.

The `extern "JS"` feature allows direct evaluation of JavaScript code, enabling interoperability and extending the language's functionality.
npm package: @pawan9303/react-search
Description: A simple utility for searching through arrays of strings or numbers. Case-insensitive search functionality.
Author: Pawan
Latest version: 1.0.1

# @pawan9303/react-search

A simple utility for searching through arrays of strings or numbers in React applications. Case-insensitive search functionality.


---

## 🚀 Features

- Case-insensitive search
- Filters array based on a search query
- Ideal for use in React applications

---

## 📦 Installation

```bash
npm install @pawan9303/react-search
```

---

## 📚 Usage

```js
import search from '@pawan9303/react-search';

const items = ['apple', 'banana', 'orange', 'apple pie'];

// Search for "apple"
const result = search(items, 'apple');
console.log(result);
// Output: [ 'apple', 'apple pie' ]
```

---

## 🔧 API Reference

### `search(list, query)`

| Param         | Type   | Description                                              |
|---------------|--------|----------------------------------------------------------|
| `list`       | Array  | The array to search through                              |
| `query` | Qurey | The search query (case-insensitive)                                    

---



## ✅ Example

```js
import React, { useState } from 'react';
import search from '@pawan9303/react-search';

const SearchExample = () => {
  const [query, setQuery] = useState('');
  const items = ['apple', 'banana', 'orange', 'apple pie'];

  const handleSearch = (e) => {
    setQuery(e.target.value);
  };

  const filteredItems = search(items, query);

  return (
    <div>
      <input
        type="text"
        placeholder="Search..."
        value={query}
        onChange={handleSearch}
      />
      <ul>
        {filteredItems.map((item, index) => (
          <li key={index}>{item}</li>
        ))}
      </ul>
    </div>
  );
};

export default SearchExample;

```

---

## 👨‍💻 Author

Made by [@pawan9303](https://www.npmjs.com/~pawan9303)

---

## 📄 License


### What's Included:
- **Installation** instructions.
- **Usage examples** (both simple search and React component usage).
- **API reference** for the search function.
- **Author info** and **license details**.

Now all the information you requested is neatly packed in a **single markdown file**.