open-index/open-npm huggingface dataset:
npm package: @nevoland/clamp
Description: 🦀 Simple function to clamp numerical values.
Author: Nicolas Velay
Latest version: 1.1.1

# Clamp

🦀 Simple function to clamp numerical values.

## Usage

The main function is default exported from the main entry-point through an ES6 module:

```js
import { clamp, isClamped } from "@nevoland/clamp";
```

## Installation

Install with the [Node Package Manager](https://www.npmjs.com/@nevoland/clamp):

```bash
npm install @nevoland/clamp
```

## Documentation

Documentation is generated [here](doc/README.md).
npm package: @nevoland/get-global
Description: 🌍 Returns the global object regardless of the environment.
Author: David Bonnet
Latest version: 2.1.0

# Get global

🌍 Returns the global object regardless of the environment.

## Usage

The main function is default exported from the main entry-point through an ES6 module:

```js
import { getGlobal } from "@nevoland/get-global";

const { setTimeout } = getGlobal();
```

## Installation

Install with the [Node Package Manager](https://www.npmjs.com/package/@nevoland/get-global):

```bash
npm install @nevoland/get-global
```

## Documentation

Documentation is generated [here](doc/README.md).
npm package: @nevr-env/cli
Description: Interactive CLI for nevr-env with the Wizard fixer
Author: Yalelet Dessalegn
Latest version: 0.2.0

# @nevr-env/cli

Interactive CLI for nevr-env — validate, fix, generate, scan, and manage your environment variables.

## Install

Usually installed automatically via the `nevr-env` umbrella package:

```bash
pnpm add nevr-env zod
npx nevr-env --help
```

Or install standalone:

```bash
pnpm add -g @nevr-env/cli
```

## Commands

| Command | Description |
|---------|-------------|
| `nevr-env init` | Interactive project setup wizard |
| `nevr-env check` | Validate .env against schema |
| `nevr-env fix` | Interactive wizard for missing variables |
| `nevr-env generate` | Generate .env.example from schema |
| `nevr-env types` | Generate TypeScript type definitions |
| `nevr-env scan` | Scan codebase for leaked secrets |
| `nevr-env diff` | Compare schemas between configs |
| `nevr-env rotate` | Track secret rotation status |
| `nevr-env ci <platform>` | Generate CI/CD validation config |
| `nevr-env vault keygen` | Generate encryption key |
| `nevr-env vault push` | Encrypt .env to vault |
| `nevr-env vault pull` | Decrypt vault to .env |
| `nevr-env watch` | Watch .env files and validate on change |
| `nevr-env dev <cmd>` | Run dev server with validation |

## CI / Non-interactive Usage

Commands that produce output work in CI without a TTY:

```bash
# Validate (exits non-zero on failure)
npx nevr-env check

# Generate files without prompts
npx nevr-env types --force
npx nevr-env generate --force

# JSON output for scripting
npx nevr-env scan --format json
npx nevr-env rotate --format json

# Generate CI workflow
npx nevr-env ci github > .github/workflows/validate-env.yml
```
## Ecosystem

| Package | Description |
|---------|-------------|
| [`nevr-env`](https://www.npmjs.com/package/nevr-env) | The umbrella package — includes everything: core, plugins, presets, vault, and CLI |
| [`@nevr-env/core`](https://www.npmjs.com/package/@nevr-env/core) | Core engine — `createEnv`, `createPlugin`, Proxy, Standard Schema validation |

## License

[MIT](LICENSE) — Built with obsession by the nevr-env contributors.
npm package: @nevr-env/core
Description: Type-safe environment validation with plugin system and Proxy pattern
Author: Yalelet Dessalegn
Latest version: 0.2.0

# @nevr-env/core

Type-safe environment validation with a plugin system, Proxy pattern, and zero required dependencies.

## Install

```bash
pnpm add @nevr-env/core zod
```

## Usage

```typescript
import { createEnv } from "@nevr-env/core";
import { z } from "zod";

export const env = createEnv({
  server: {
    DATABASE_URL: z.string().url(),
    API_SECRET: z.string().min(32),
  },
  client: {
    NEXT_PUBLIC_APP_URL: z.string().url(),
  },
  clientPrefix: "NEXT_PUBLIC_",
  runtimeEnv: process.env,
});

// Fully typed — env.DATABASE_URL is string, env.API_SECRET is string
```

## Features

- **Type-safe** — Full TypeScript inference from schemas, no codegen needed
- **Plugin system** — `createPlugin()` factory for declarative env definitions
- **Multi-library** — Works with Zod, Valibot, ArkType, or any Standard Schema
- **Proxy-based** — Server variables throw if accessed on the client
- **Zero required deps** — Core has no runtime dependencies (schema libs are optional peers)

## Built-in Schema Helpers

Skip Zod entirely with lightweight built-in validators:

```typescript
import { urlSchema, portSchema, booleanSchema } from "@nevr-env/core";

const env = createEnv({
  server: {
    API_URL: urlSchema(),
    PORT: portSchema(),
    DEBUG: booleanSchema(false),
  },
  runtimeEnv: process.env,
});
```

## Batteries-included Package

For plugins, vault, CLI, and presets, install the umbrella package instead:

```bash
pnpm add nevr-env zod
```
## Ecosystem

| Package | Description |
|---------|-------------|
| [`nevr-env`](https://www.npmjs.com/package/nevr-env) | The umbrella package — includes everything: core, plugins, presets, vault, and CLI |
| [`@nevr-env/cli`](https://www.npmjs.com/package/@nevr-env/cli) | Interactive CLI — fix wizard, scanner, vault, schema diff, and 12 more commands |
  
See [nevr-env on npm](https://www.npmjs.com/package/nevr-env) or the [full documentation](https://nevr-ts.github.io/nevr-env/).

## License

[MIT](LICENSE) — Built with obsession by the nevr-env contributors.
npm package: @nevr/cli
Description: CLI for Nevr - Nevr write boilerplate again
Latest version: 0.3.5

<h1 align="center">⚡ @nevr/cli</h1>

<p align="center">
  <strong>Command-line superpowers for Nevr development</strong>
</p>

<p align="center">
  <a href="https://www.npmjs.com/package/@nevr/cli"><img src="https://img.shields.io/npm/v/@nevr/cli.svg?style=flat-square&color=blue" alt="npm version"></a>
  <a href="https://www.npmjs.com/package/@nevr/cli"><img src="https://img.shields.io/npm/dm/@nevr/cli.svg?style=flat-square" alt="npm downloads"></a>
  <a href="https://github.com/nevr-ts/nevr/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-MIT-green.svg?style=flat-square" alt="license"></a>
</p>

---

## 🚀 Quick Start

```bash
# Generate schema and types
npx @nevr/cli generate

# Push to database
npx @nevr/cli db:push

# Start dev server with hot reload
npx @nevr/cli dev
```

---

## 📦 Installation

```bash
# Global (recommended for frequent use)
npm install -g @nevr/cli

# Or use directly with npx
npx @nevr/cli <command>
```

---

## 🎯 Commands

### `nevr generate`

Generate Prisma schema 

```bash
nevr generate [options]

Options:
  -c, --config <path>   Config file (default: ./nevr.config.ts)
  -o, --out <dir>       Output directory (default: ./prisma)
  -p, --provider <db>   Database: sqlite, postgresql, mysql (default: sqlite)

Examples:
  nevr generate
  nevr generate -p postgresql -o ./src/prisma
```

### `nevr db:push`

Push your schema to the database (development).

```bash
nevr db:push

# Creates tables without migration files
# ⚠️ May reset data - use db:migrate for production
```

### `nevr db:migrate`

Create a versioned migration (production-safe).

```bash
nevr db:migrate --name "add_posts_table"

# Creates migration file in prisma/migrations/
```

### `nevr db:studio`

Launch Prisma Studio to view/edit your data.

```bash
nevr db:studio

# Opens browser at http://localhost:5555
```

### `nevr db:reset`

Reset database to fresh state.

```bash
nevr db:reset

# ⚠️ Deletes all data
```

### `nevr dev`

Start development server with hot reload.

```bash
nevr dev [options]

Options:
  -p, --port <number>   Port (default: 3000)
  --host <ip>           Host (default: localhost)

Example:
  nevr dev -p 4000
```

---

## 📁 Generated Output

```
├── prisma/
│   └── schema.prisma    # Database schema
```

---

## ⚡ Workflow

```bash
# 1. Define entities in nevr.config.ts
# 2. Generate everything
nevr generate

# 3. Push to database
nevr db:push

# 4. Start coding
nevr dev
```

---

## 📚 Related

| Package | Description |
|---------|-------------|
| [`nevr`](https://npmjs.com/package/nevr) | Core framework |
| [`@nevr/generator`](https://npmjs.com/package/@nevr/generator) | Generator library |
| [`create-nevr`](https://npmjs.com/package/create-nevr) | Project scaffolder |

---

## 📄 License

[MIT](https://github.com/nevr-ts/nevr/blob/main/LICENSE) © Nevr Contributors
npm package: @nevule/sac-tool
Description: sac project tool
Author: nevule
Latest version: 0.0.16

# sac-tool

[![license](https://img.shields.io/npm/l/@nevule/sac-tool?color=cyan)](https://revolunet.mit-license.org/) [![npm](https://img.shields.io/npm/v/@nevule/sac-tool?color=orange)](https://www.npmjs.com/package/@nevule/sac-tool)

`The math tool written in Rust`

`一款基于 Rust 实现的 数据计算`

## Install

```shell
$ npm i @nevule/sac-tool
```

## Usage

```js
import * as sac from '@nevule/sac-tool';
// 获取离群元素
sac.outliers(new Float64Array([1, 2, 3, 4, 3, 1, 2, 4, 10, 15])); // => [10, 15]

// Promise版本
import { Calculate } from '@nevule/sac-tool';
const sac = new Calculate();
await sac.outliers(new Float64Array([1, 2, 3, 4, 3, 1, 2, 4, 10, 15])); // => Promise<[10, 15]>
```

## Test

```js
const numbers = (new Array(10000000).fill(1).map(() => Math.random() * 1000000));

console.time('js')
js.coefficientOfVariation(numbers)
console.timeEnd('js') // 1.119s

console.time('rust')
sac.coefficientOfVariation(new Float64Array(numbers))
console.timeEnd('rust') // 122.788ms

console.time('rust-wasm')
wasm.coefficientOfVariation(new Float64Array(numbers))
console.timeEnd('rust-wasm') // 164.442ms
```

## Support matrix


|                  | node14 | node16 | node18 |
| ---------------- | ------ | ------ | ------ |
| Windows x64      | ✓     | ✓     | ✓     |
| Windows x32      | ✓     | ✓     | ✓     |
| Windows arm64    | ✓     | ✓     | ✓     |
| macOS x64        | ✓     | ✓     | ✓     |
| macOS arm64      | ✓     | ✓     | ✓     |
| Linux x64 gnu    | ✓     | ✓     | ✓     |
| Linux x64 musl   | ✓     | ✓     | ✓     |
| Linux arm gnu    | ✓     | ✓     | ✓     |
| Linux arm64 gnu  | ✓     | ✓     | ✓     |
| Linux arm64 musl | ✓     | ✓     | ✓     |
| Android arm64    | ✓     | ✓     | ✓     |
| Android armv7    | ✓     | ✓     | ✓     |
| FreeBSD x64      | ✓     | ✓     | ✓     |

## License

[MIT](https://opensource.org/licenses/MIT)