open-index/open-npm huggingface dataset:
npm package: @newwwton/rollup-plugin-alias
Description: Resolves aliases with Rollup
Author: Johannes Stein
Latest version: 2.0.1

# rollup-plugin-alias
Define aliases when bundling packages with Rollup.

[![Build Status](https://travis-ci.org/rollup/rollup-plugin-alias.svg?branch=master)](https://travis-ci.org/rollup/rollup-plugin-alias) [![Dependency Status](https://david-dm.org/frostney/rollup-plugin-alias.svg)](https://david-dm.org/frostney/rollup-plugin-alias) [![devDependency Status](https://david-dm.org/frostney/rollup-plugin-alias/dev-status.svg)](https://david-dm.org/frostney/rollup-plugin-alias#info=devDependencies) [![Coverage Status](https://coveralls.io/repos/github/frostney/rollup-plugin-alias/badge.svg?branch=master)](https://coveralls.io/github/frostney/rollup-plugin-alias?branch=master)

Let's take a simple import as an example:

```javascript
import something from '../../../something';

something();
```

This probably doesn't look too bad on its own. But imagine this is not the only instance in your code base and after a refactor/restructuring this might fall over. With this plugin in place, you can alias `../../../something` with `something` for readability. In case of a refactor only the alias would need to be changed instead of navigating through the code base and changing all imports.

```javascript
import something from 'something';

something();
```

When we write tests, we may want an easier way to access the local library we are testing or mocking libraries. We may also define aliases to counteract "require hell" and get rid of all those `../../../` imports we may have in the process.

For Webpack users: This is a plugin to mimic the `resolve.alias` functionality in Rollup.

## Installation
```
$ npm install rollup-plugin-alias
```
#
## Usage
```javascript
// rollup.config.js
import alias from 'rollup-plugin-alias';

export default {
  input: './src/index.js',
  plugins: [
    alias({
      resolve: ['.jsx', '.js'], //optional, by default this will just look for .js files or folders
      entries:[
        {find:'something', replacement: '../../../something'}, //the initial example
        {find:'somelibrary-1.0.0', replacement: './mylocallibrary-1.5.0'}, //remap a library with a specific version
        {find:/^i18n\!(.*)/, replacement: '$1.js'}, //remove something in front of the import and append an extension (e.g. loaders, for files that were previously transpiled via the AMD module, to properly handle them in rollup as internals now)
        //for whatever reason, replace all .js extensions with .wasm
        {find:/^(.*)\.js$/, replacement: '$1.wasm'} 
      ]
    })
  ],
};
```
The order of the entries is important, in that the first rules are applied first.

You can use either simple Strings or Regular Expressions to search in a more distinct and complex manner (e.g. to do partial replacements via subpattern-matching, see aboves example).

## License
MIT, see `LICENSE` for more information
npm package: @newy/define
Description: ```ts export class VNode {   public children?: any[]   public tag?: string   constructor(     public template: string | TemplateStringsArray,     public propList: any[]   ) {} }
Latest version: 0.3.0

# @newy/define

```ts
export class VNode {
  public children?: any[]
  public tag?: string
  constructor(
    public template: string | TemplateStringsArray,
    public propList: any[]
  ) {}
}

export function h(template: TemplateStringsArray | string, ...propList: any[]) {
  if (!isTemplateStringsArray(template) && !is(template, 'string'))
    throw new Error('template should be a string or a TemplateStringsArray')

  const vnode = new VNode(template, propList)
  const res = Object.setPrototypeOf(
    Object.assign(
      (...children: any[]) => {
        if (children.length) vnode.children = children
        if (res.tag) vnode.tag = res.tag
        return vnode
      },
      vnode,
      { [Symbol.toStringTag]: VNode.name }
    ),
    VNode.prototype
  ) as ((...children: any[]) => VNode) & VNode
  return res
}

export function define<T extends (...args: any[]) => any>(tag: string, fn: T, ...options: any[]) {
  return (template: TemplateStringsArray | string, ...propList: Parameters<T>) => {
    const res = h(template, ...propList)
    res.tag = tag
    return res
  }
}
```
npm package: @newy/dsl
Description: 一个描述 name, attribute, children 结构 的内部DSL
Author: weisongyao
Latest version: 0.1.2
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

## 一个描述 name, attribute, children 结构 的内部DSL

示例

```js
import init from '@newy/dsl'

let { n } = init()
let { div, a, img, h1, p, button } = n

let dom = div(
  a`href="https://vitejs.dev" target="_blank"`(img`src=${src1} class="logo" alt="Vite logo"`),
  a`href="https://www.typescriptlang.org/" target="_blank"`(
    img`src=${src2} class="logo vanilla" alt="TypeScript logo"`
  ),
  h1('Vite + TypeScript'),
  div`class="card"`(button`id="counter" type="button"`),
  p`class="read-the-docs"`('Click on the Vite and TypeScript logos to learn more')
)

console.log(dom)
```
npm package: @newy/html
Description: @newy/html
Author: weisongyao
Latest version: 0.1.4

## 声明式DOM库

[项目地址](https://github.com/wsybox/newy-root)

示例

```js
import { tag } from '@newy/html'

let { div, a, img, h1, p, button } = tag

let dom = div(
  a`href="https://vitejs.dev" target="_blank"`(img`src=${src1} class="logo" alt="Vite logo"`),
  a`href="https://www.typescriptlang.org/" target="_blank"`(
    img`src=${src2} class="logo vanilla" alt="TypeScript logo"`
  ),
  h1('Vite + TypeScript'),
  div`class="card"`(button`id="counter" type="button"`),
  p`class="read-the-docs"`('Click on the Vite and TypeScript logos to learn more')
)

document.querySelector('body').append(dom)
```
npm package: @newyork.anthonyng/react-transport
Description: Transport React element to document.body
Author: Anthony Ng
Latest version: 0.0.2

# react-transport

A component that transports HTML elements to document.body.

```javascript
<Transport isOpen>
	<h1>Hello World</h1>
</Transport>

// The H1 element will be appended to the end of document.body
```

# API
isOpen : A React Component property that takes a boolean. If true, the element will be removed from the normal HTML flow and appended to the end of the document.body. If false, then nothing will render.

children : A single React element.
npm package: @newyorkcompute/kalshi-core
Description: Shared utilities for Kalshi prediction market tools — SDK configuration, formatting, and types
Author: NewYorkCompute
Latest version: 0.6.2

# @newyorkcompute/kalshi-core

Shared utilities for Kalshi prediction market tools — SDK configuration, formatting, and types.

## Installation

```bash
npm install @newyorkcompute/kalshi-core
```

## Usage

### Configuration

```typescript
import {
  getKalshiConfig,
  createMarketApi,
  createPortfolioApi,
} from "@newyorkcompute/kalshi-core";

// Get config from environment variables
const config = getKalshiConfig();

// Create API clients
const marketApi = createMarketApi(config);
const portfolioApi = createPortfolioApi(config);
```

### Formatting

```typescript
import {
  formatPrice,
  formatCurrency,
  formatPriceChange,
} from "@newyorkcompute/kalshi-core";

formatPrice(45);        // "45¢"
formatCurrency(4500);   // "$45.00"
formatPriceChange(2);   // "▲ +2"
formatPriceChange(-3);  // "▼ -3"
```

## Environment Variables

| Variable | Required | Description |
|----------|----------|-------------|
| `KALSHI_API_KEY` | Yes | Your Kalshi API key ID |
| `KALSHI_PRIVATE_KEY` | Yes | RSA private key (PEM format) |
| `KALSHI_BASE_PATH` | No | API base URL (default: production) |

## License

MIT © [NewYorkCompute](https://github.com/newyorkcompute)
npm package: @newyouth/ai-uni
Description: A Component Library for uni-app
Author: newyouth
Latest version: 0.0.1

# ai-uni

基于Vue 3的抽象组件用于uni-app项目开发使用.

## Recommended IDE Setup

[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur).

## Type Support for `.vue` Imports in TS

TypeScript cannot handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for type checking. In editors, we need [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) to make the TypeScript language service aware of `.vue` types.

## Customize configuration

See [Vite Configuration Reference](https://vite.dev/config/).

## Project Setup

```sh
npm install ai-uni --save
```

### Compile and Hot-Reload for Development

```sh
npm run dev
```
npm package: @newyouth/hi-admin
Description: A mid-to-back office front-end framework based on the latest Vue 3 technology stack
Author: newyouth
Latest version: 0.0.6

# hi-admin

A mid-to-back office front-end framework based on the latest Vue 3 technology stack.

## Project Setup

```sh
npm install @newyouth/hi-admin --save
```
npm package: @newyouth/hi-ui
Description: A Component Library for Vue2.
Author: newyouth
Latest version: 0.0.1


> Vue2 based UI components

1. ## Install dependencies

```javascript
npm install hi-ui

```

2. ## setp up

```javascript
import Vue from 'vue'
import HiUi from 'hi-ui'

Vue.use(HiUi)

```
```
<template>
  <div>
    <el-button @click="openDialog">打开全局弹窗</el-button>
    <hi-form :model="model" :columns="columns" @change="onChange"></hi-form>
  </div>
</template>

<script>
export default {
	data() {
		return {
      model: { name: undefined, age: 'ZH' },
			columns: [
        {
          title: '姓名',
          name: 'input',
          key: 'name',
          rules: [{ required: true, message: '必填项' }],
          span: 12,
          props: { 'show-word-limit': true, maxlength: 100, readonly: false }
        },
        {
          title: '年龄',
          name: 'select',
          key: 'age',
          dict: {
            isTree: false,
            label: 'label',
            value: 'value',
            children: 'children',
            data: [{ label: '中国', value: 'ZH' }, { label: '美国', value: 'USA' }],
            url: 'lala'
          },
          rules: [{ required: true, message: '必填项' }],
          span: 12,
          props: { placeholder: '请下拉选择11' }
        }
      ]
		}
	},
  methods: {
    onChange(e, scope) {
      console.log(e, scope)
    },
    openDialog() {
      this.$root.openModal({
        show: true,
        type: 'dialog',
        width: '80%',
        title: '全局弹窗1',
        slots: {
          default: (h) => h('div', { style: { color: 'red' } }, 66666)
        }
      })
    }
  }
}
</script>
```
npm package: @newzogwosh/libup
Description: 一个轻量级的 JavaScript/TypeScript 工具库，提供定时任务、延时、性能测量等实用功能
Author: Your Name
Latest version: 0.0.1

# @yourdomain/libup

一个轻量级的 JavaScript/TypeScript 工具库，提供定时任务、延时、性能测量等实用功能。

## 功能特性

- 🕒 **定时任务调度** - 创建和管理定时任务
- ⏱️ **间隔执行** - 设置重复执行的间隔任务
- ⏰ **延时工具** - Promise 基础的延时函数
- 📊 **性能测量** - 测量函数执行时间
- 🛡️ **错误处理** - 安全的 try-catch 包装器
- 📦 **TypeScript 支持** - 完整的类型定义

## 安装

```bash
npm install @yourdomain/libup
# 或
pnpm add @yourdomain/libup
# 或
yarn add @yourdomain/libup
```

## 使用示例

### 定时任务

```typescript
import { createScheduleTask } from '@yourdomain/libup';

// 创建定时任务
const task = createScheduleTask();

// 添加任务
task.createTask('daily-backup', () => {
  console.log('执行每日备份');
}, '0 2 * * *'); // 每天凌晨2点执行

// 启动任务调度器
task.start();
```

### 延时工具

```typescript
import { delay } from '@yourdomain/libup';

async function example() {
  console.log('开始');
  await delay(1000); // 延时1秒
  console.log('1秒后执行');
}
```

### 性能测量

```typescript
import { measureExecutionTime } from '@yourdomain/libup';

const result = await measureExecutionTime(async () => {
  // 你的代码
  await someAsyncOperation();
});

console.log(`执行时间: ${result.executionTime}ms`);
console.log(`返回值:`, result.result);
```

### 间隔执行

```typescript
import { createInterval } from '@yourdomain/libup';

const interval = createInterval(() => {
  console.log('每5秒执行一次');
}, 5000);

// 停止间隔执行
interval.clear();
```

## API 文档

### createScheduleTask()

创建一个定时任务调度器。

### delay(ms: number): Promise<void>

创建一个延时 Promise。

### measureExecutionTime<T>(fn: () => T | Promise<T>): Promise<{result: T, executionTime: number}>

测量函数执行时间。

### createInterval(callback: () => void, ms: number): {clear: () => void}

创建间隔执行器。

## 开发

```bash
# 安装依赖
pnpm install

# 运行测试
pnpm test

# 构建项目
pnpm build

# 监听模式测试
pnpm test:watch
```

## 许可证

MIT License
npm package: @nex-toolbox/storage
Description: 也是一个封装 localStorage 和 sessionStorage 的轻量级工具
Latest version: 1.0.2

# @nex-toolbox/storage

也是一个封装 localStorage 和 sessionStorage 的轻量级工具。

## 特性

- 支持 localStorage 和 sessionStorage
- 支持设置统一的前缀
- 序列化、反序列化
- 对数据进行自定义的加解密
- 支持设置过期时间（只有使用 @nex-toolbox/storage 的 getStorage 方法才有效）

## 安装
```bash
npm install @nex-toolbox/storage
# 或
pnpm add @nex-toolbox/storage
```

## 使用
```typescript
import { getStorage, setStorage } from '@nex-toolbox/storage';

setStorage('biz', { key: 'value' }); // 向浏览器 LocalStorage 写入数据

const key = getStorage('biz');  // 从浏览器 LocalStorage 读取数据
```
npm package: @nex-ui/cli
Description: A CLI tool that unlocks seamless NexUI integration
Author: X1ng Yu
Latest version: 0.0.13

# @nex-ui/cli

This CLI tool enables you to quickly start building an application integrated with NexUI, with everything set up for you.

## Quick Start

To get started, use the following command:

```bash copy

npx @nex-ui/cli init

```

## Usage

```
The official CLI for Nex UI

Usage: nexui-cli [options] [command]

Options:
  -v, --version                  Output the current version
  -h, --help                     Display help for command

Commands:
  init [project-name] [options]  Initializes a new project

    Options:
      -t, --template <template>  Use a specific template

    Available templates:
      next-app            A Next.js 15 with app directory template pre-configured with NexUI and Emotion.
      next-pages          A Next.js 15 with pages directory template pre-configured with NexUI and Emotion.
      vite                A Vite + React template pre-configured with NexUI and Emotion.
      vite-swc            A Vite-SWC + React template pre-configured with NexUI and Emotion.
```

## Documentation

Visit https://nex-ui-docs.vercel.app/docs/getting-started/cli to view the full documentation.

## Contributing

Contributions are always welcome!

See [CONTRIBUTING.md](https://github.com/rxy001/nex-ui/blob/main/CONTRIBUTING.md) for ways to get started.

Please adhere to this project's [CODE_OF_CONDUCT](https://github.com/rxy001/nex-ui/blob/main/CODE_OF_CONDUCT.md).
npm package: @nex-ui/react
Description: 🎉 A beautiful, modern, and reliable React component library.
Author: X1ng Yu
Latest version: 0.0.18

<div style="background:white;">
  <p align="center">
    <img src='../../assets/logo.png' width='25%' />
  </p>
  <h1 align="center">Nex UI</h1>
  <p align="center">🎉 A beautiful, modern, and reliable React component library.</p>
  <p align="center"><b>Theme Customizable, Light & Dark UI, Unique DX, Written In TypeScript</b></p>
</div>

## Documentation

Visit https://nex-ui-docs.vercel.app to view the full documentation.

## Getting Started

Visit https://nex-ui-docs.vercel.app/docs/getting-started to get started with Nex UI.

## Storybook

Visit https://nex-ui-storybook.vercel.app to view the storybook for all components.

## Contributing

Contributions are always welcome!

See [CONTRIBUTING.md](https://github.com/rxy001/nex-ui/blob/main/CONTRIBUTING.md) for ways to get started.

Please adhere to this project's [CODE_OF_CONDUCT](https://github.com/rxy001/nex-ui/blob/main/CODE_OF_CONDUCT.md).

## License

[MIT](https://choosealicense.com/licenses/mit/)
npm package: @nex-ui/system
Description: A lightweight and performant styling library based on Emotion, focusing on component architecture and developer experience.
Author: X1ng Yu
Latest version: 0.0.18

# @nex-ui/system

A lightweight and performant styling library based on Emotion, focusing on component architecture and developer experience.

## Installation

```bash
npm i @nex-ui/system
```

## Key Features

### Tokens

Define your own design tokens and apply them seamlessly as CSS values. CSS properties are automatically mapped to token scales, and tokens can even be used within shorthand CSS properties.

### Scales

Scales map tokens and semantic tokens to CSS properties, allowing CSS properties to directly reference tokens of the appropriate type. This enables the use of tokens as values for CSS properties, ensuring consistency and scalability across the design system.',

### Aliases

Aliases are used to define aliases for CSS properties, which simplifies CSS property names and supports combining CSS properties.

### Selectors

Selectors are designed to combine multiple CSS selectors, aiming to apply style rules to page elements more efficiently and flexibly.

### Recipes

Create multi-variant styles with a type-safe runtime API, heavily inspired by [vanilla-extract](https://vanilla-extract.style/documentation/packages/recipes/).

### Dark Mode

Dark Mode that works out of the box. Additionally, the styles for the Dark Mode can be easily defined in the recipes.

### Responsive Design

Define custom breakpoints and apply them directly in the recipes to create responsive layouts.

### Developer Experience

One of our main goals is to provide the best possible developer experience. The system provides a fully-typed API, so when using TypeScript, CSS properties, tokens, and breakpoints etc. will be auto-completed for you.