open-index/open-npm huggingface dataset:
npm package: @jayway/getsandbox-express
Description: getsandbox-express adapter and cli
Author: xbtsw
Latest version: 1.5.0

# @jayway/getsandbox-express
A getsandbox.com to express adapter

## Usage

### as command-line tool, without installing

```bash
npx @jayway/getsandbox-express <main.js> [<port>]
```

Alternatively, if you want to install it globally:

```bash
npm install -g @jayway/getsandbox-express
sandbox <main.js> [<port>]
```

Default port is `8080`.

### as Node.js module

```js
const sandbox = require('@jayway/getsandbox-express')
const express = require('express')

const app = express()
sandbox.loadSandbox(app, __dirname + '/mysandbox/main.js')

const port = 8080
app.listen(port, () => {
  console.log(`Sandbox listening on port ${port}.`)
})
```
npm package: @jaywelsh/ethers-multicall
Description: Make multiple Ethereum network requests in a single HTTP query. multicall for ethers v5.
Author: Jay Welsh
Latest version: 0.5.2

# ethers-multicall

Make multiple Ethereum network requests in a single HTTP query. [multicall](https://github.com/mds1/multicall) for ethers v5.

## Build

```
yarn
yarn build
```

## Test

```
yarn test
```

## Publish

Set your NPM auth token in `.npmrc`, then run:
```
npm publish
```

## API

* `Contract(address, abi)`: Create contract instance; calling `contract.callFuncName` will yield a `call` object
* `all(calls)`: Execute all calls in a single request
* `calls`: List of helper call methods
* `getEthBalance(address)`: Returns account ether balance

### Example

```ts
import { Contract, Provider } from 'ethers-multicall';
import { ethers } from 'ethers';

import erc20Abi from './abi/erc20.json';

const infuraKey = 'INSERT_YOUR_KEY_HERE';
const provider = new ethers.providers.InfuraProvider('mainnet', infuraKey);

const daiAddress = '0x6b175474e89094c44da98b954eedeac495271d0f';

async function call() {
  const ethcallProvider = new Provider(provider);

  await ethcallProvider.init(); // Only required when `chainId` is not provided in the `Provider` constructor

  const daiContract = new Contract(daiAddress, erc20Abi);

  const uniswapDaiPool = '0x2a1530c4c41db0b0b2bb646cb5eb1a67b7158667';

  const ethBalanceCall = ethcallProvider.getEthBalance(uniswapDaiPool);
  const daiBalanceCall = daiContract.balanceOf(uniswapDaiPool);

  const [ethBalance, daiBalance] = await ethcallProvider.all([ethBalanceCall, daiBalanceCall]);

  console.log('ETH Balance:', ethBalance.toString());
  console.log('DAI Balance:', daiBalance.toString());
}

call();
```
npm package: @jaywelsh/plugin-propy
Description: <div align="center"> <a href="https://github.com/goat-sdk/goat">
Latest version: 0.1.0

<div align="center">
<a href="https://github.com/goat-sdk/goat">

<img src="https://github.com/user-attachments/assets/5fc7f121-259c-492c-8bca-f15fe7eb830c" alt="GOAT" width="100px" height="auto" style="object-fit: contain;">
</a>
</div>

# Propy GOAT Plugin

Propy's experimental AI agent to make it easier for new blockchain users to read data from the blockchain.

## Installation
```bash
npm install @goat-sdk/plugin-propy
yarn add @goat-sdk/plugin-propy
pnpm add @goat-sdk/plugin-propy
```

## Usage
```typescript
import { propy } from '@goat-sdk/plugin-propy';

const tools = await getOnChainTools({
    wallet: // ...
    plugins: [
      propy({
        chainId: sepolia.id,
        provider: process.env.RPC_PROVIDER_URL,
      })
    ]
});
```

## Tools
* get_staking_power
* get_staking_remaining_lockup_period
* MORE COMING SOON

<footer>
<br/>
<br/>
<div>
<a href="https://github.com/goat-sdk/goat">
  <img src="https://github.com/user-attachments/assets/59fa5ddc-9d47-4d41-a51a-64f6798f94bd" alt="GOAT" width="100%" height="auto" style="object-fit: contain; max-width: 800px;">
</a>
</div>
</footer>
npm package: @jayyuen1/jsob
Description: JavaScript/JSON object navigator
Author: jayyuen1
Latest version: 0.0.2

# jsob

A tiny library for navigating through and editing JavaScript/JSON objects, especially via multi-level keys. 


## Installation

`npm install @jayyuen1/jsob`


## Tests

`npm test`


## Usage

There are three functions: 
- **nav** (navigate) - Returns the value that exists at a certain location in a JavaScript/JSON object.
- **set** - Sets a value at a certain location in a JavaScript/JSON object
- **del** (delete) - Deletes a value at a certain location in a JavaScript/JSON object

For all three functions, you specify a location in your JavaScript/JSON object as a sequential list of keys.
  
```javascript
const jsob = require('../jsob')

const obj = {
  zero: 'someString',
  one: {
    two: [
      'uno',
      'due',
      {
        colors: [
          'red',
          'green',
          'blue'
        ]
      }
    ],
    three: 'Hello'
  }
}

// The 'nav' command lets you specify a sequential path of keys to navigate
// through, and returns the value that exists at the end of the path you
// specified.
jsob.nav(obj, 'one') // returns 
jsob.nav(obj, ['one', 'two', 2, 'colors', 1]) // returns 'green'

// If you specify a path that doesn't exist, then you will get back 'undefined'

jsob.nav(obj, ['one', 'five', 'seven', 100]) // returns 'undefined'

// Use the 'set' command to set the value at a certain place in the object.
// If this causes an existing value to get overwritten, then this function 
// will return the value that got overwritten.  Or, if no value got
// overwritten, then the function will return 'undefined'.
jsob.set(obj, ['one', 'two', 2, 'colors', 1], 'purple') // returns 'green'
jsob.nav(obj, ['one', 'two', 2, 'colors', 1]) // returns our new value,
                                              //                     'purple'

// Use the 'del' command to delete a value from your structure.
// The function will return the value that got deleted.

// The following line will return:
//                   [ 'uno', 'due', { colors: [ 'red', 'purple', 'blue' ] } ] 
jsob.del(obj, ['one', 'two'])


// At this point, obj = { zero: 'someString', one: { three: 'Hello' } }


// With 'set', if interim keys do not exist in the path you provide, then
// objects will automatically get created along the way.
jsob.set(obj, ['one', 'four', 'something'], 'myValue') // returns undefined

// At this point,
//   obj = { zero: 'someString',
//            one: { three: 'Hello', four: { something: 'myValue' } } }

```
npm package: @jayzyaj/enhanced-formik-persist
Description: Persist and rehydrate a Formik form
Author: Jared Palmer
Latest version: 1.0.0

# Formik Persist

Persist and rehydrate a [Formik](https://github.com/jaredpalmer/formik) form.

```
npm install formik-persist --save
```

# Basic Usage

Just import the `<Persist >` component and put it inside any Formik form. It renders `null`!

```js
import React from 'react'
import { Formik, Field, Form } from 'formik'
import { Persist } from 'formik-persist'

export const Signup = () =>
  <div>
    <h1>My Cool Persisted Form</h1>
    <Formik
      onSubmit={values => console.log(values)}
      initialValues={{ firstName: '', lastName: '', email: '' }}
      render={props =>
        <Form className="whatever">
          <Field name="firstName" placeholder="First Name" />
          <Field name="lastName" placeholder="Last Name" />
          <Field name="email" type="email" placeholder="Email Address" />
          <button type="submit">Submit</button>
          <Persist name="signup-form" />
        </Form>}
    />
  </div>;
```

### Props

Only two props! 

- `name: string`: LocalStorage key to save form state to
- `debounce:? number`: Default is `300`. Number of ms to debounce the function that saves form state.


## Author

- Jared Palmer [@jaredpalmer](https://twitter.com/jaredpalmer)


## Todo

- Alternative storages (localForage, sessionStorage)
- Support AsyncStorage for React Native
npm package: @jaz303/sam-ba
Description: Library for interacting with the Atmel SAM-BA (boot assistant)
Author: Jason Frame
Latest version: 1.0.5

# sam-ba

Work-in-progress Node.js port of ShumaTech's [BOSSA](https://github.com/shumatech/BOSSA).

## Current Status

  - Ability to read device ID
  - Mostly-working CLI for flash reading/writing (some bugs)
  - Support for reading device settings from user row

USB is untested (although faithfully ported). Expect bugs here. NB "USB" means native USB, not USB-serial bridges (which __are__ tested).

### Things that are outstanding

At present only the `D2xNvmFlash` flash implementation is ported (and extended to support the `SAMC2x` series). Ports of the following flash implementations are outstanding:

  - `D5xNvmFlash`
  - `EefcFlash`
  - `EfcFlash`


If you want to use `sam-ba` in your project...

## What this project is

`sam-ba` is designed as a library for applications that need to __embed their own firmware update facilities__, supplying their own interface.

## What this project is not

`sam-ba` is not intended to be a general purpose end-user bootloader interface, although a CLI tool may follow in the future - most likely as a separate package. A general purpose GUI is not on the roadmap.

## Device Support

### ATSAMC2x

Should work. Tested devices:

  - `ATSAMC20J18A` - in-development

### ATSAMD2x

Should work.

## Basic Usage

### Reading Flash

```javascript


```

### Writing Flash

```javascript


```

## Adding Chip Support
npm package: @jazasoft/react-native-admin
Description: React Native Admin
Author: razamd
Latest version: 0.9.37

# @jazasoft/react-native-admin

React Native Admin

## Installation

```sh
npm install @jazasoft/react-native-admin
```

## Usage

```js
import { multiply } from '@jazasoft/react-native-admin';

// ...

const result = await multiply(3, 7);
```

## 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: @jazasoft/rna-core
Description: Framework for React Native
Author: Md Zahid Raza
Latest version: 0.9.36

# react-native-admin

React Native Admin

## Installation

```sh
npm install react-native-admin
```

## Usage

```js
import { multiply } from 'react-native-admin';

// ...

const result = await multiply(3, 7);
```

## 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: @jazasoft/rna-ui-elements
Description: React native Admin - UI using React Native Elements
Author: razamd
Latest version: 0.9.37

# rna-ui-elements

React native Admin - UI using React Native Paper

## Installation

```sh
npm install @jazasoft/rna-ui-elements
```

## Usage

```js
import { multiply } from '@jazasoft/rna-ui-elements';

// ...

const result = await multiply(3, 7);
```

## 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: @jazebjaved/accordion
Description: An easy way to add accordion in your react native app
Author: Jazeb_Javed
Latest version: 1.0.4

# accordion-npm-package

React Native Accordion Component

## Installation

`npm install @jazebjaved/accordion`
or
` yarn add @jazebjaved/accordion`

Install the following dependency if not already installed.

## Dependencies

react-native-svg

`npm install react-native-svg`
or
`yarn add react-native-svg`

# Usage

import Accordion from '@jazebjaved/accordion'

### Template with types

`<Accordion title={<string>} content={<ReactNode>}/>`

### Example

`<Accordion title="Title" content={<View><Text>Content</Text></View>}/>`

## Props

| Prop            | Type      | Description                       | Required | Default Value |
| --------------- | --------- | --------------------------------- | -------- | ------------- |
| title           | string    | Title of the accordion            | ✔        | -             |
| content         | ReactNode | Content of the accordion          | ✔        | -             |
| px              | number    | Padding on x-axis                 | ❌       | 10            |
| py              | number    | Padding on y-axis                 | ❌       | 6             |
| bgC             | string    | Background color of the accordion | ❌       | #eee          |
| borderRadius    | number    | Border radius of the accordion    | ❌       | 6             |
| gap             | number    | Gap between title and content     | ❌       | 10            |
| titleColor      | string    | Color of the title                | ❌       | #000          |
| titleFontSize   | number    | Font size of the title            | ❌       | 16            |
| titleFontWeight | string    | Font weight of the title          | ❌       | 600           |
| contentBgC      | string    | Background color of the content   | ❌       | #fff          |
| contentPx       | number    | Padding on x-axis of the content  | ❌       | 10            |
| contentPy       | number    | Padding on y-axis of the content  | ❌       | 6             |

## Example

```jsx
import React from 'react';
import {View, Text} from 'react-native';
import Accordion from '@jazebjaved/accordion';

const App = () => {
  return (
    <View style={{flex: 1, justifyContent: 'center', alignItems: 'center'}}>
      <Accordion
        title="Title"
        content={
          <View>
            <Text>Content</Text>
          </View>
        }
      />
    </View>
  );
};

export default App;
```

## Versions

### version 1.0.4 (current)

New : custom styling for accordion title and content.

### version 1.0.3

Updated deafult styling of accordion.

### version 1.0.2

Updated Readme.md

### version 1.0.1

Added basic accordion functionality.

### version 1.0.0

Initial release of accordion package.
npm package: @jazeee/regression
Description: Javascript least squares data fitting methods
Author: Tom Alexander
Latest version: 2.0.11

# @jazeee/regression

This package is a fork of <https://travis-ci.org/Tom-Alexander/regression-js>, which is no longer maintained.

regression-js is a JavaScript module containing a collection of linear least-squares fitting methods for simple data analysis.

## Installation

This module works on node and in the browser. It is available as the '@jazeee/regression' package on [npm](https://www.npmjs.com/package/@jazeee/regression).

### npm

```bash
npm install --save @jazeee/regression
```

## Usage

```javascript
import regression from '@jazeee/regression';
const result = regression.linear([[0, 1], [32, 67], [12, 79]]);
const gradient = result.equation[0];
const yIntercept = result.equation[1];
```

Data is passed into the model as an array. A second parameter can be used to configure the model. The configuration parameter is optional. `null` values are ignored. The precision option will set the number of significant figures the output is rounded to.

### Configuration options

Below are the default values for the configuration parameter.

```javascript
{
  order: 2,
  precision: 2,
}
```

### Properties

- `equation`: an array containing the coefficients of the equation
- `string`: A string representation of the equation
- `points`: an array containing the predicted data in the domain of the input
- `residuals`: an array containing the difference between predicted data and source data in the domain of the input
- `r2`: the coefficient of determination (<i>R</i><sup>2</sup>)
- `predict(x)`: This function will return the predicted value

## API

### `regression.linear(data[, options])`

Fits the input data to a straight line with the equation ![y = mx + c](http://mathurl.com/ycqyhets.png). It returns the coefficients in the form `[m, c]`.

### `regression.exponential(data[, options])`

Fits the input data to a exponential curve with the equation ![y = ae^bx](http://mathurl.com/zuys53z.png). It returns the coefficients in the form `[a, b]`.

### `regression.logarithmic(data[, options])`

Fits the input data to a logarithmic curve with the equation ![y = a + b ln x](http://mathurl.com/zye394m.png). It returns the coefficients in the form `[a, b]`.

### `regression.power(data[, options])`

Fits the input data to a power law curve with the equation ![y = ax^b](http://mathurl.com/gojkazs.png). It returns the coefficients in the form `[a, b]`.

### `regression.polynomial(data[, options])`

Fits the input data to a polynomial curve with the equation ![anx^n ... + a1x + a0](http://mathurl.com/hxz543o.png). It returns the coefficients in the form `[an..., a1, a0]`. The order can be configure with the `order` option.

#### Example

```javascript
const data = [[0,1],[32, 67] .... [12, 79]];
const result = regression.polynomial(data, { order: 3 });
```

## Development

- Install the dependencies with `npm install`
- To build the assets in the `dist` directory, use `npm run build`
- You can run the tests with: `npm run test` or `npm run test -- --watch`.
- `npm run lint --fix`
npm package: @jazim/generator-ts-scaffold
Description: TypeScript scaffolding for Yeoman generators
Author: Jazim Abbas
Latest version: 1.0.5

# TypeScript Scaffolding for Yeoman Generators

This is a Yeoman generator for scaffolding TypeScript projects. It provides a set of templates and best practices for building TypeScript applications.

## Features

- TypeScript support
- Pre-configured project structure
- Built-in best practices

**Note:** You must need to prefix the package name with `generator-` when using it with Yeoman. And if you are using a scoped package, it should be prefixed with `@scope/generator-`.

## Installation

```bash
npm install -g yo
npm install -g @jazim/generator-ts-scaffold
```

## Usage

```bash
yo @jazim/ts-scaffold
```

## For Local Development
If you want to develop this generator locally, you can link it globally:

```bash
npm link
```

And to verify that the generator is linked correctly, you can run:

```bash
yo --generators
```

You can unlink it later after you are done with development:

```bash
npm unlink -g @jazim/generator-ts-scaffold
```

To verify that the generator is unlinked, you can run:

```bash
npm list -g --depth=0
```
npm package: @jazim/plop-install
Description: Plop generator for installing npm packages
Author: Jazim Abbas
Latest version: 1.0.0

# plop-install

A custom action for [Plop.js](https://plopjs.com/) that allows you to install npm packages as part of your generator workflow.

## Installation

```bash
npm install -D @jazim/plop-install
# or
yarn add -D @jazim/plop-install
# or
pnpm add -D @jazim/plop-install
```

## Usage

Import the action in your `plopfile.js` or `plopfile.ts`:

```typescript
import { NodePlopAPI } from "plop";
import { type InstallPackageActionConfig, installPackageAction } from "@jazim/plop-install";

export default function (plop: NodePlopAPI) {
  plop.setActionType("install-package", installPackageAction);

  plop.setGenerator("eslint", {
    description: "Add an eslint",
    actions: [
      {
        type: "install-package",
        packages: ["eslint"],
        options: { dev: true },
      } as InstallPackageActionConfig,
    ],
  });
}
```

## Options

The `install-package` action accepts the following configuration:

| Option | Type | Description |
|--------|------|-------------|
| `packages` | `string[]` | Array of package names to install |
| `options` | `object` | Additional options for installation |
| `options.dev` | `boolean` | Install as dev dependency when set to `true` |

## Features

- 📦 Install any npm packages during your plop generation
- 🛠️ Support for devDependencies
- 📋 Works with npm, yarn, and pnpm
- 🔄 Seamlessly integrates with your existing plop generators

## License

MIT
npm package: @jazmon/require-env-vars
Description: Ensure env vars are specified that are in config
Author: Atte Huhtakangas
Latest version: 1.2.2

# require-env-vars

A micro-module to ensure your Node process env has all the necessary variables to run your app.

## Features

* Check your config object for missing env variables
* Make some config keys optional
* Default values for keys
* Nested objects in config
* Multiple configuration files supported

## Example usage

`src/config/index.ts`

```javascript
const config = {
  NODE_ENV: process.env.NODE_ENV as string,
  API_KEY: process.env.API_KEY as string,
  LOG_LEVEL: process.env.LOG_LEVEL || 'info', // A value with default
  LOG_FILE: process.env.LOG_FILE || null, // Maybe value
  // Numerical value, must be parsed since all process.env values are strings
  MY_COOL_NUMBER: parseInt(process.env.MY_COOL_NUMBER, 10),
  PRE_DEFINED_VAR: 'foobar',
  // Nested object
  FOOBAR: {
    URL: process.env.FOOBAR_URL as string,
    API_KEY: process.env.FOOBAR_API_KEY as string,
  }
};
```

`src/index.ts`

```javascript
import { requireConfigVars } from '@jazmon/require-env-vars';
import config from './config';

const missingConfigVars = requireConfigVars(config);
if (missingConfigVars.length > 0) {
  throw new Error(
    `Required configuration variables are missing! ${JSON.stringify(
      missingConfigVars,
    )}`,
  );
  process.exit(2);
}

// ... app logic
```

### Directly throw if an error

```javascript
import { throwMissingConfigVars } from '@jazmon/require-env-vars';
import config from './config';
// You can pass multiple config files
import fooConfig from './config/foo';

try {
  throwMissingConfigVars(config, fooConfig);
} catch (err) {
  console.error(err);
  process.exit(2);
}
```

## Example usage to require strings

Or you can use the `requireEnvVars` which will take an array of strings as input to check env against:

```javascript
import { requireEnvVars } from '@jazmon/require-env-vars';

const missingEnvVars = requireEnvVars(['API_KEY', 'API_URL']);

if (missingEnvVars.length > 0) {
  throw new Error(
    `Required configuration variables are missing! ${JSON.stringify(
      missingEnvVars,
    )}`,
  );
  process.exit(2);
}
```

### Directly throw if an error for string array

```javascript
import { throwMissingEnvVars } from '@jazmon/require-env-vars';
try {
  throwMissingEnvVars(['API_KEY', 'API_URL']);
} catch (err) {
  console.error(err);
  process.exit(2);
}
```
npm package: @jazz-community-org/pack-jazz-web-plugin
Description: Script for packaging a JavaScript plugin for the IBM Jazz Platform
Author: Martin Benninger, Siemens AG
Latest version: 2.0.2

# Package Jazz Web Plugins

Use this script to package JavaScript web plugins for extending the IBM Jazz Platform.

## Install

```
npm install @jazz-community-org/pack-jazz-web-plugin --save-dev
```

## Configure

The script will take the following from the `package.json` in the root of your plugin:

```json
{
  "name": "your-plugin-name",
  "version": "your-plugin-version",
  "description": "your-plugin-description",
  "author": "your-plugin-author",
  "license": "your-plugin-license",
  "packJazzWebPlugin": {
    "pluginId": "your-plugin-id (the same as in your plugin.xml)",
    "pluginFiles": ["..."]
  }
}
```

The `"pluginFiles"` list is used to specify all the files and directories that should be included in the plugin package. Directories are specified by adding a trailing slash `/`. It can be left out and will default to `["META-INF/", "resources/", "plugin.xml"]`.

Additionally, the environment variable `BUILD_TIMESTAMP` can be used to set a custom timestamp in the created zip file name. Without this, a timestamp will be created from the current time.

If running in a GitHub workflow, the zip file name will be stored in `${{ steps.STEP_ID.outputs.output_file }}` and can be used to reference the file in a following step.

## Run

Make sure that your current working directory is the root of your web plugin.

### Option 1

Add the script to your `package.json`:

```json
"scripts": {
  "pack": "pack-jazz-web-plugin"
}
```

Then run the command:

```
npm run pack
```

### Option 2

Alternatively, you can run the package directly using npx:

```
npx pack-jazz-web-plugin
```

Executing the package using npx has the advantage that the console output will only contain the created zip file name. This can be used to locate the file in the next step of your CI process.

## Output

A zip file is created with the settings and plugin files configured in the `package.json`. If the script is successful, the name of the zip file will be outputted to the console.

This is the structure of the output file:

```
id_version_date-time.zip
├─ id_updatesite
│  ├─ features
│  │  ├─ id.feature_version_date-time.jar
│  │  │  ├─ feature.xml
│  ├─ plugins
│  │  ├─ id_version_date-time.jar
│  │  │  ├─ **/* (all plugin files)
│  ├─ site.xml
└─ id_updatesite.ini
```
npm package: @jazzcss/reduce-calc
Description: Turn complex CSS `calc` and other math expressions into their simplest form.
Author: 4Catalyzer
Latest version: 1.0.2

# reduce calc

Turn complex CSS `calc` and other math expressions into their simplest form.

```js
import reduceCalc from '@jazzcss/reduce-calc';

reduceCalc('calc((1px * (10 + 10)) / 2)'); // -> '10px'

reduceCalc('max(40px, 20px, 300px)'); // -> '300px'

reduceCalc('calc(max(5cm, 30mm + 3cm, 1mm) + 60mm)'); // -> '12cm'

reduceCalc('calc((10 + 10) * 1px + 100vh)'); // -> 'calc(20px + 100vh)'
```