open-index/open-npm huggingface dataset:
npm package: @nathan.kramer/require-env
Description: Easily create config objects from environment variables
Author: Nathan Kramer
Latest version: 1.0.1

# Require Env

Allows you to easily create config objects from environment variables.

Values are required by default.

E.g getting DB credentials:

```ts
const config = requireEnv({
  host: "DB_HOST",
  user: "DB_USER",
  password: "DB_PASS",
  database: "DB_NAME",
  port: ["DB_PORT", positiveInteger],
});
```

## Install

```
npm install @nathan.kramer/require-env
```

## Usage

### Getting a single value

```ts
import { requireEnvVar } from '@nathan.kramer/require-env';

const value = requireEnvVar("SOME_ENV_VAR");
```

### Creating a config object

```ts
import { requireEnv } from '@nathan.kramer/require-env';

const config = requireEnv({
  someString: "REQUIRED_STRING_VALUE",
  someNum: ["REQUIRED_NUMBER_VALUE", parseInt],
  someOptionalValue: ["OPTIONAL_VALUE", { optional: true }],
  valueWithDefault: ["VALUE_WITH_DEFAULT", "default value"],
});
```

### Built-in parsers for convenience

These are just for convenience. They will error on invalid values.

```ts
import { requireEnv, num, bool, positiveInteger } from '@nathan.kramer/require-env';

const config = requireEnv({
  someNum: ["REQUIRED_NUMBER_VALUE", num],
  somePositiveInteger: ["REQUIRED_POSITIVE_INTEGER_VALUE", positiveInteger],
  someBool: ["REQUIRED_BOOLEAN_VALUE", bool],
});
```

### Default values

```ts
import { requireEnvVar } from '@nathan.kramer/require-env';

const value = requireEnvVar("SOME_ENV_VAR", "default value");
```

```ts
import { requireEnv } from '@nathan.kramer/require-env';

const config = requireEnv({
  someValue: ["SOME_VALUE", "default value"],
  someOtherValue: ["SOME_INT", { parser: parseInt, defaultValue: 123 }],
});
```
npm package: @nathan2024/up-sdk-core
Description: ⚒️ An SDK for building applications on top of Uniswap V3
Latest version: 4.2.0
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# Uniswap SDK Core hack

[![Unit Tests](https://github.com/Uniswap/uniswap-sdk-core/workflows/Unit%20Tests/badge.svg)](https://github.com/Uniswap/uniswap-sdk-core/actions?query=workflow%3A%22Unit+Tests%22)
[![Lint](https://github.com/Uniswap/uniswap-sdk-core/workflows/Lint/badge.svg)](https://github.com/Uniswap/uniswap-sdk-core/actions?query=workflow%3ALint)
[![npm version](https://img.shields.io/npm/v/@uniswap/sdk-core/latest.svg)](https://www.npmjs.com/package/@uniswap/sdk-core/v/latest)
[![npm bundle size (scoped version)](https://img.shields.io/bundlephobia/minzip/@uniswap/sdk-core/latest.svg)](https://bundlephobia.com/result?p=@uniswap/sdk-core@latest)

This code is shared across Uniswap TypeScript SDKs.
npm package: @nathan2024/up-v2-sdk
Description: 🛠 An SDK for building applications on top of Uniswap V2
Latest version: 4.3.0

# Uniswap V2 SDK

[![Unit Tests](https://github.com/Uniswap/uniswap-v2-sdk/workflows/Unit%20Tests/badge.svg)](https://github.com/Uniswap/uniswap-v2-sdk/actions?query=workflow%3A%22Unit+Tests%22)
[![Lint](https://github.com/Uniswap/uniswap-v2-sdk/workflows/Lint/badge.svg)](https://github.com/Uniswap/uniswap-v2-sdk/actions?query=workflow%3ALint)
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)
[![npm version](https://img.shields.io/npm/v/@uniswap/v2-sdk/latest.svg)](https://www.npmjs.com/package/@uniswap/v2-sdk/v/latest)
[![npm bundle size (scoped version)](https://img.shields.io/bundlephobia/minzip/@uniswap/v2-sdk/latest.svg)](https://bundlephobia.com/result?p=@uniswap/v2-sdk@latest)

In-depth documentation on this SDK is available at [uniswap.org](https://uniswap.org/docs/v2/SDK/getting-started/).
npm package: @nathan2024/up-v3-sdk
Description: ⚒️ An SDK for building applications on top of Uniswap V3
Latest version: 3.11.0

# Alpha software

The latest version of the SDK is used in production in the Uniswap Interface,
but it is considered Alpha software and may contain bugs or change significantly between patch versions.
If you have questions about how to use the SDK, please reach out in the `#dev-chat` channel of the Discord.
Pull requests welcome!

# Uniswap V3 SDK

[![Unit Tests](https://github.com/Uniswap/uniswap-v3-sdk/workflows/Unit%20Tests/badge.svg)](https://github.com/Uniswap/uniswap-v3-sdk/actions?query=workflow%3A%22Unit+Tests%22)
[![Lint](https://github.com/Uniswap/uniswap-v3-sdk/workflows/Lint/badge.svg)](https://github.com/Uniswap/uniswap-v3-sdk/actions?query=workflow%3ALint)
[![npm version](https://img.shields.io/npm/v/@uniswap/v3-sdk/latest.svg)](https://www.npmjs.com/package/@uniswap/v3-sdk/v/latest)
[![npm bundle size (scoped version)](https://img.shields.io/bundlephobia/minzip/@uniswap/v3-sdk/latest.svg)](https://bundlephobia.com/result?p=@uniswap/v3-sdk@latest)

In-depth documentation on this SDK is available at [uniswap.org](https://docs.uniswap.org/).
npm package: @nathan3boss/exval
Description: Composable middleware builders for Express validators
Author: nathan2slime
Latest version: 1.1.0

# @nathan3boss/exval

![npm version](https://img.shields.io/npm/v/%40nathan3boss%2Fexval?style=flat&logo=npm)
![CI](https://img.shields.io/github/actions/workflow/status/nathan2slime/exval/ci.yml?branch=main&style=flat&logo=github)

Composable Express middleware builders for request validators.

## Install

```bash
pnpm add @nathan3boss/exval
```

## What it does

- Validates `body`, `params`, and `query`.
- Supports a global validation message override.
- Keeps the core adapter-agnostic.
- Ships adapters for Zod, Yup, and class-transformer.

## Global config

Set a default validation message once at app startup.

```ts
import { configure } from "@nathan3boss/exval";

configure({ validationMessage: "Dados inválidos" });
```

## Core usage

```ts
import express from "express";
import { createBodyValidator, createValidationAdapter } from "@nathan3boss/exval";

const app = express();

const adapter = createValidationAdapter((input: { userId: string }) => ({
  userId: Number(input.userId),
}));

app.use(express.json());

app.post("/users", createBodyValidator(adapter), (req, res) => {
  res.json(req.body);
});
```

### zod adapter

```ts
import express from "express";
import { z } from "zod";
import { createBodyValidator } from "@nathan3boss/exval";
import { createZodAdapter } from "@nathan3boss/exval/zod";

const app = express();
const schema = z.object({ userId: z.coerce.number().int() });

app.use(express.json());
app.post("/users", createBodyValidator(createZodAdapter(schema)), (req, res) => {
  res.json(req.body);
});
```

### yup adapter

```ts
import * as yup from "yup";
import { createBodyValidator } from "@nathan3boss/exval";
import { createYupAdapter } from "@nathan3boss/exval/yup";

const schema = yup.object({ userId: yup.number().required().integer() });

app.post("/users", createBodyValidator(createYupAdapter(schema)), (req, res) => {
  res.json(req.body);
});
```

### class-transformer adapter

```ts
import { createBodyValidator } from "@nathan3boss/exval";
import { createClassTransformerAdapter } from "@nathan3boss/exval/class-transformer";

class UserDto {
  id!: number;
  name!: string;
}

app.post(
  "/users",
  createBodyValidator(
    createClassTransformerAdapter(UserDto, {
      validate: (value) => value.id > 0 && value.name.length > 0,
    }),
  ),
  (req, res) => {
    res.json(req.body);
  },
);
```


## Scripts

- `pnpm build`
- `pnpm typecheck`
- `pnpm lint`
- `pnpm test`
- `pnpm test:coverage`
npm package: @nathan3boss/ui
Description: [![NPM Downloads](https://img.shields.io/npm/dm/%40nathan3boss%2Fui)](https://www.npmjs.com/package/@nathan3boss/ui) [![NPM License](https://img.shields.io/npm/l/%40nathan3boss%2Fui)](./LICENSE) [![Documentation](https://img.shields.io/badge/docs-ui.natha
Latest version: 1.2.1

# @nathan3boss/ui

[![NPM Downloads](https://img.shields.io/npm/dm/%40nathan3boss%2Fui)](https://www.npmjs.com/package/@nathan3boss/ui)
[![NPM License](https://img.shields.io/npm/l/%40nathan3boss%2Fui)](./LICENSE)
[![Documentation](https://img.shields.io/badge/docs-ui.nathan3boss.dev-0f172a)](https://ui.nathan3boss.dev)

React UI component library built with Rslib, Panda CSS, and TypeScript.

## Installation

```bash
pnpm add @nathan3boss/ui react react-dom
```

## Documentation

- Docs site: https://ui.nathan3boss.dev
- Components index: https://ui.nathan3boss.dev/components
- API reference: https://ui.nathan3boss.dev/api

## License

MIT. See [LICENSE](./LICENSE).
npm package: @nathan6am/solid-tree-store
Description: SolidJS tree data store
Latest version: 0.1.2

## Usage

Those templates dependencies are maintained via [pnpm](https://pnpm.io) via `pnpm up -Lri`.

This is the reason you see a `pnpm-lock.yaml`. That being said, any package manager will work. This file can be safely be removed once you clone a template.

```bash
$ npm install # or pnpm install or yarn install
```

### Learn more on the [Solid Website](https://solidjs.com) and come chat with us on our [Discord](https://discord.com/invite/solidjs)

## Available Scripts

In the project directory, you can run:

### `npm run dev` or `npm start`

Runs the app in the development mode.<br>
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.

The page will reload if you make edits.<br>

### `npm run build`

Builds the app for production to the `dist` folder.<br>
It correctly bundles Solid in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.<br>
Your app is ready to be deployed!

## Deployment

You can deploy the `dist` folder to any static host provider (netlify, surge, now, etc.)
npm package: @nathan7/jit.js
Description: JIT assembly generator for node.js
Author: Fedor Indutny
Latest version: 1.0.1

# JIT Assembler [![Build Status](https://travis-ci.org/indutny/jit.js.png?branch=master)](https://travis-ci.org/indutny/jit.js)

![Logo](https://raw.github.com/indutny/jit.js/master/logo/jit-small.png)

## Instructions

```javascript
var jit = require('jit.js');

var fn = jit.compile(function() {
  this.Proc(function() {
    this.mov('rax', 42);
    this.Return();
  });
});

console.log(fn());  // 42
```

#### LICENSE

This software is licensed under the MIT License.

Copyright Fedor Indutny, 2013.

Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to permit
persons to whom the Software is furnished to do so, subject to the
following conditions:

The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
USE OR OTHER DEALINGS IN THE SOFTWARE.
npm package: @nathanaelregesdev/autoresizetextarea
Description: Auto Rresizes your Textarea
Author: Nathanael Reges Sousa
Latest version: 1.0.2

# autoResizeTextArea

```javascript
const  module =  autoResizeTextArea({ele, minHeight, maxHeight)  
```

<br/>**`ele`** &ensp; The textarea element.  
**`minHeight`** &ensp; The height won't get smaller than this.  
**`maxHeight`** &ensp; The height won't get bigger than this.  

<br/>**`module.onKeyDown`**  
An eventMethod. You can assign a function to this method and this function will be executed when the user types a letter.  

<br/>**`module.onTypedNewLine`**  
If the page is scrollable and the user is typing a new line out of the viewport the browser by default scrolls down so the line which the user is in becomes visible. You might want to scroll a little more to show some related button or to center correctly the bottom of the element. When this happens this module will call it's onTypedNewLine method and you can assign a function to it and make the adjustments that you need.  

<br/>**`module.reset()`**  
It resets the height of the element to the minHeight. You can use it if you have emptied the `textAreaElement.value` and want that the height is restored to the min.  

<br/>**`module.forceTest()`**  
Retest the element height.
npm package: @nathanaelscott/madlibs
Description: A component for replacing words in the dom from a JSON file
Author: Nathanael Scott
Latest version: 1.1.0

# Mad Libs

Mad Libs is a JavaScript library for replacing words in a dom from a JSON

## Installation

Use npm to install

```bash
npm install @nathanaelscott/madlibs
```

## JavaScript usage

```javascript
import MadLibs from '@nathanaelscott/madlibs';


let options = {
    'flowers':{
        'type':'nested',
        'array':[
            {state:'VIC',flower:'Epacris impressa',size:'150mm'},
            {state:'NSW',flower:'Waratah',size:'113mm'},
            {state:'TAS',flower:'Tasmanian blue gum',size:'95mm'}
        ]
        
    },
    'animals':{
        'type':'variable',
        'biggest':'elephant',
        'smallest':'shrew'
    },
    'me':{
        'type':'single',
        'word':'Nathanael Scott'
    }
}

MadLibs(options);

```

## DOM usage:

Accepts the camel cased string in the title attribute or with a leading # in the href attribute.

```html

<a title="WORDflowersRANK1VALUEflower"></a> <!-- Returns: Epacris imperessa -->
<a title="WORDflowersSTATEtasVALUEsize"></a> <!-- Returns: 95mm -->

<a href="#WORDanimalsVALUEsmallest"></a> <!-- Returns: shrew -->
<a href="#WORDme"></a> <!-- Returns: Nathanael Scott -->
```

Returns:

```html
<span class="madlib-word">Epacris imperessa</span>
<span class="madlib-word">95mm</span>
<span class="madlib-word">shrew</span>
<span class="madlib-word">Nathanael Scott</span>
```

## Options

Mad Libs accepts a nested object. The object key is word the ID.

```javascript
const options = {
    'flowers':{...}
}
```
Adding camal cased option to the name attribute starting with WORD followed by the ID replaces the element with a span containg the output

```html
<a name="WORDflowers"></a>
```

# type

nested

Returns values from an array of objects using it's rank (position in array) or id

```javascript
'flowers':{
    'type':'nested',
    'array':[
        {state:'VIC',flower:'Epacris impressa',size:'150mm'},
        {state:'NSW',flower:'Waratah',size:'113mm'},
        {state:'TAS',flower:'Tasmanian blue gum',size:'95mm'}
    ]
}
```

```html
<a name="WORDflowersRANK1VALUEflower"></a> 
<!-- Returns the value flower from first entry in the array -->

<a name="WORDflowersSTATEtasVALUEsize"></a>
<!-- Returns the value size from the entry with the state TAS -->

<a name="WORDflowersRANK2VALUEstate"></a>
<!-- Returns the long Australian state name from the 2nd entry in the array -->

```

Options accepts

array - An ordered array (ordered to your own critera) with either a state (uppercase appreviation) or type variable as identification

Anchor options
state, type
rank

value

variable
Get values from the object via their names

Anchor options
value

single

Return a single word from the word value
npm package: @nathanaelytj/sweetalert2
Description: This is a fork. This repo/package is for those looking for fix with vulnerabilities warning.
Author: Limon Monte
Latest version: 11.7.3
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# NOTICE

This is a fork. This repo/package is for those looking for fix with vulnerabilities warning.