open-index/open-npm huggingface dataset:
npm package: @nitwel/sandbox
Description: Toolkit for spinning up directus test environments
Author: Nils Twelker
Latest version: 1.0.9

# Directus Api Sandbox 🛠️

Utility functions for quickly spinning up and down instances of directus for usage such as testing or development.

## Usage

The package offers two ways of interacting, either through calling JS functions or through accessing the command line
interface.

### CLI

```
Usage: sandbox [options] <database>

Arguments:
  database                            What database to start the api with (choices: "maria", "cockroachdb", "mssql", "mysql", "oracle", "postgres", "sqlite")

Options:
  -b, --build                         Rebuild directus from source
  -d, --dev                           Start directus in developer mode. Not compatible with build
  -w, --watch                         Restart the api when changes are made
  --inspect                           Start the api with debugger (default: true)
  -p, --port <port>                   Port to start the api on
  -x, --export                        Export the schema to a file every 2 seconds
  -s, --schema [schema]               Load an additional schema snapshot on startup
  --docker.basePort <dockerBasePort>  Minimum port number to use for docker containers
  --docker.keep                       Keep containers running when stopping the sandbox
  --docker.name                       Overwrite the name of the docker project
  -e, --extras <extras>               Enable redis,maildev,saml or other extras
  -i, --instances <instances>         Horizontally scale directus to a given number of instances (default: "1")
  --killPorts                         Forcefully kills all processes that occupy ports that the api would use
  -h, --help                          display help for command
```

### API

The api is accessed through the following two functions:

- [sandbox](docs/functions/sandbox.md)
- [sandboxes](docs/functions/sandboxes.md)

#### Example

```ts
import { sandbox } from '@directus/sandbox';

const sb = await sandbox('postgres', { dev: true });

// Interact via Rest, GQL or WebSockets
const result = await fetch(sb.env.PUBLIC_URL + '/items/articles');

console.log(await result.json());

await sb.close();
```

## Inner workings

Depending on what is set in the configuration, some of these steps might be skipped:

1. **Building of the api**: If enabled, the api is freshly build each time the sandbox is started. Use the `watch`
   option to quickly iterate on changes.
2. **Starting of the docker containers**: All required docker containers like databases or extras like redis are spun up
   and awaited until healthy. If the docker containers are still running, they will be reused instead of starting up new
   ones.
3. **Bootstrapping of the database**: If not already bootstrapped, the sandbox will make sure that all necessary
   database tables are created.
4. **Loading of a schema snapshot**: In case the `schema` option is set, the database will also the snapshot applied
   before starting directus.
5. **Starting of the api**: Finally, the api(s) are spun up with the right environment variables configured.
npm package: @nitxiodev/next-intl-yaml
Description: Compile distributed YAML translation files into a generated manifest that can be consumed by [`next-intl`](https://next-intl.dev/) in Next.js App Router projects.
Latest version: 1.1.5

# next-intl-yaml

Compile distributed YAML translation files into a generated manifest that can be consumed by [`next-intl`](https://next-intl.dev/) in Next.js App Router projects.

## What it does

- Scans YAML files with a glob (default: `src/**/locales/*.yaml`)
- Generates a TypeScript manifest (default: `src/i18n/locales-manifest.ts`)
- Injects Turbopack `yaml-loader` rule via `withNextIntlYaml`
- Works with Next.js HMR/Fast Refresh during development

## YAML file convention

Use this naming pattern:

```txt
src/<module>/locales/<namespace>.<locale>.yaml
```

Example:

```txt
src/home/locales/hero.en.yaml
src/home/locales/hero.es.yaml
src/checkout/locales/summary.en.yaml
```

Generated namespaces are PascalCase (`hero` -> `Hero`, `summary` -> `Summary`).

## Install in your Next.js project

Install in the app where you want to consume YAML translations:

> [!WARNING]
> `next-intl` is required and must be installed in your app.
> This package declares `next-intl` as a peer dependency.

```bash
pnpm add -D next-intl-yaml
```

If you use npm or yarn:

```bash
npm install -D next-intl-yaml
# or
yarn add -D next-intl-yaml
```

## Setup

### 1) Configure `next.config.ts`

This is the mandatory setup. The plugin call in `next.config.ts` is what enables YAML loading and manifest generation.

```ts
import type { NextConfig } from "next";
import createNextIntlPlugin from "next-intl/plugin";
import withNextIntlYaml from "next-intl-yaml";

const nextConfig: NextConfig = {
  // regular Next.js config...

  nextIntlYaml: {
    globSource: "src/**/locales/*.yaml",
    manifestOutputPath: "src/i18n/locales-manifest.ts",
    relativeImportPathAlias: "@/",
  },
};

const withNextIntl = createNextIntlPlugin();
export default withNextIntl(withNextIntlYaml(nextConfig));
```

### 2) Use generated messages in `next-intl` request config

```ts
import { getRequestConfig } from "next-intl/server";
import { hasLocale } from "next-intl";
import { routing } from "@/i18n/routing";
import { localeYamlMessages } from "@/i18n/locales-manifest";

export default getRequestConfig(async ({ requestLocale }) => {
  const requested = await requestLocale;
  const locale = hasLocale(routing.locales, requested)
    ? requested
    : routing.defaultLocale;

  return {
    locale,
    messages: localeYamlMessages[locale] ?? {},
  };
});
npm package: @nitzan/future.js
Description: A wrapper for the Promise object
Author: Nitzan Tomer
Latest version: 1.0.1

# future.js

A simple wrapper for the promise object which can be used when the logic of the async operation should not be implemented 
inside the promise.

A simple example:

```typescript
class MyRemoteDataFetcher {
	fetch(): Promise<string> {
		let future = new Future<string>();
		
		// make a remote request, when it returns:
		future.resolve(VALUE_FROM_REMOTE);
		// or if it fails:
		future.reject(MESSAGE);
		
		return future.asPromise();
	}
}
```
npm package: @niu-tools/vue3
Description: --- title: 导览 first: 0 ---
Author: npmrun
Latest version: 0.0.17

---
title: 导览
first: 0
---

## 部分收集，感谢作者

-   [vue-use](https://github.com/vueuse/vueuse)
-   [vue-aide](https://github1s.com/JessYan0913/vue-aide)
npm package: @niu2x/change-version
Description: change project version
Author: niu2x
Latest version: 1.0.5

# Change Version CLI

`change-version` is a command-line utility designed to update version numbers in project files. It currently supports CMake, NodeJS, and Doxygen projects. The tool automates the process of parsing and modifying version numbers within these files.

## Features

- **CMake**: Automatically updates version numbers in `CMakeLists.txt`.
- **NodeJS**: Modifies the version in `package.json`.
- **Doxygen**: Adjusts version numbers in Doxygen configuration files.

## Installation

You can install `change-version` via npm:

```bash
npm install -g @niu2x/change-version
```

## Usage

The basic syntax for using `change-version` is as follows:

```bash
change-version <projectType> -i -v <newVersion> <filePath>
```

- `<projectType>`: The type of project file to modify (`CMake`, `NodeJS`, or `Doxygen`).
- `-i`: In-place modification of the file.
- `-v <newVersion>`: The new version number to set.
- `<filePath>`: The path to the project file.


### Examples

#### CMake

To update the version number in a `CMakeLists.txt` file:

```bash
change-version CMake -i -v 1.1.1 /path/to/CMakeLists.txt
```

#### NodeJS

To change the version in a `package.json` file:

```bash
change-version Node -i -v 1.1.1 /path/to/package.json
````

#### Doxygen

To update the version in a Doxygen configuration file:

```bash
change-version Doxygen -i -v 1.1.1 /path/to/Doxyfile
```
npm package: @niubalib/weapp.engine.io-client
Description: Client for the realtime Engine Wechat mini program
Latest version: 3.2.3

Edited for Wechat mini program based-on [engine.io](https://github.com/socketio/engine.io)

## Multiple Connections

Support multiple & single connection modle.

## TODO

- Polling transport
- Alipay mini program
npm package: @niubalib/weapp.socket.io
Description: ![logo](https://avatars0.githubusercontent.com/u/24429466?s=200&u=031180a39da9253ac73d782dabb27d46cf828e37&v=4)
Latest version: 2.0.2

![logo](https://avatars0.githubusercontent.com/u/24429466?s=200&u=031180a39da9253ac73d782dabb27d46cf828e37&v=4)

[![NPM version](https://img.shields.io/badge/npm-2.0.1-brightgreen.svg)](https://www.npmjs.com/package/weapp.socket.io)
[![GitHub forks](https://img.shields.io/github/forks/10cella/weapp.socket.io.svg)](https://github.com/10cella/weapp.socket.io/network)
[![GitHub stars](https://img.shields.io/github/stars/10cella/weapp.socket.io.svg)](https://github.com/10cella/weapp.socket.io/stargazers)
[![GitHub license](https://img.shields.io/github/license/10cella/weapp.socket.io.svg)](https://github.com/10cella/weapp.socket.io/blob/master/LICENSE)
[![GitHub issues](https://img.shields.io/github/issues/10cella/weapp.socket.io.svg)](https://github.com/10cella/weapp.socket.io/issues)

weapp.socket.io is a client live in Wechat mini program environment based-on [socket.io](https://socket.io/) and full features to [socket.io-client](https://github.com/socketio/socket.io-client) a browser version.

# Feature

Full feature socket.io style implemented, based-on `socket.io@2.0` version

> NOTE: Only support websocket transport, removed polling transport.

# Demos

[Weapp Demo](https://github.com/wxsocketio/socket.io-weapp-demo)

[Wepy Demo](https://github.com/weapp-socketio/wepy-demo-socket.io)

# Install

If you use a third-party framework such as [wepy](https://github.com/Tencent/wepy), you should install via `npm`

```
  npm i weapp.socket.io
```

Or if you use the native way to write code，I recommend using `git clone`

```
  git clone https://github.com/10cella/weapp.socket.io

  npm run build

  cp path/weapp.socket.io/dist/weapp.socket.io.js path/your_weapp_dir
```

# Usage

code style is same to [socket.io-client](https://github.com/socketio/socket.io-client)

```
const io = require('./yout_path/weapp.socket.io.js')

const socket = io('http://localhost:8000')

socket.on('news', d => {
  console.log('received news: ', d)
})

socket.emit('news', { title: 'this is a news' })
```

# API

See [socket.io-client API](https://github.com/socketio/socket.io-client/blob/master/docs/API.md)

# TODO

- AliPay mini program support

# Contributing

<img src="https://avatars3.githubusercontent.com/u/18544015?s=100&u=2ef4c96445ee5cc3b9b4b9817666287f85b77068&v=4" style="border-radius: 50%" />

# 用户信息征集

如果你的项目正在使用 [weapp.socket.io](https://github.com/weapp-socketio/weapp.socket.io) 欢迎留下你的项目信息（名称，Logo，官网等）

> 可以在 [这个 Issue](https://github.com/weapp-socketio/weapp.socket.io/issues/13) 提交您的项目信息
npm package: @niubiniubi666/uniswap-v2-sdk
Description: 🛠 An SDK for building applications on top of Uniswap.
Latest version: 3.1.1

# Uniswap SDK

[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)
[![Actions Status](https://github.com/Uniswap/uniswap-sdk/workflows/CI/badge.svg)](https://github.com/Uniswap/uniswap-sdk)
[![npm version](https://img.shields.io/npm/v/@uniswap/sdk/latest.svg)](https://www.npmjs.com/package/@uniswap/sdk/v/latest)
[![npm bundle size (scoped version)](https://img.shields.io/bundlephobia/minzip/@uniswap/sdk/latest.svg)](https://bundlephobia.com/result?p=@uniswap/sdk@latest)

In-depth documentation on this SDK is available at [uniswap.org](https://uniswap.org/docs/v2/SDK/getting-started/).

## Running tests

To run the tests, follow these steps. You must have at least node v10 and [yarn](https://yarnpkg.com/) installed.

First clone the repository:

```sh
git clone https://github.com/Uniswap/uniswap-sdk.git
```

Move into the uniswap-sdk working directory

```sh
cd uniswap-sdk/
```

Install dependencies

```sh
yarn install
```

Run tests

```sh
yarn test
```

You should see output like the following:

```sh
yarn run v1.22.4
$ tsdx test
 PASS  test/constants.test.ts
 PASS  test/pair.test.ts
 PASS  test/fraction.test.ts
 PASS  test/miscellaneous.test.ts
 PASS  test/entities.test.ts
 PASS  test/trade.test.ts

Test Suites: 1 skipped, 6 passed, 6 of 7 total
Tests:       3 skipped, 82 passed, 85 total
Snapshots:   0 total
Time:        5.091s
Ran all test suites.
✨  Done in 6.61s.
```
npm package: @niuck/niu-ui
Description: Vue3 components library
Author: niuck
Latest version: 1.0.0

# v-element

This template should help get you started developing with Vue 3 in Vite.

## 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
pnpm install
```

### Compile and Hot-Reload for Development

```sh
pnpm dev
```

### Type-Check, Compile and Minify for Production

```sh
pnpm build
```

### Lint with [ESLint](https://eslint.org/)

```sh
pnpm lint
```
npm package: @niuee/bend
Description: This is more of like a practice. I am rewriting essentially the same thing as [bezier-js](https://github.com/Pomax/bezierjs/tree/master) by following the [Superb Guide on Bezier Curve by Pomax](https://pomax.github.io/bezierinfo/), with my own interpetati
Author: niuee
Latest version: 0.0.2

# Simple Bezier Curve Library

This is more of like a practice. I am rewriting essentially the same thing as [bezier-js](https://github.com/Pomax/bezierjs/tree/master) by following the [Superb Guide on Bezier Curve by Pomax](https://pomax.github.io/bezierinfo/), with my own interpetation and I/O. This is to be used on one of my future projects invloving a simulation of rail system and I plan on doing it with bezier curves. This is also the first time that I am incorporating TDD into my development flow. I am trying to start small and take baby steps, hopefully I can apply TDD on something that has a greater scope than this project does.
This project is still early on I only implemented some of the features, but feel free to take a look at it. I plan to release the package on npm as well.
npm package: @niuiic/flow
Description: A functional library for TypeScript/JavaScript
Author: niuiic
Latest version: 0.3.11

<br/>

<p align="center">
  <a href="https://flow.niuiic.com" target="_blank" rel="noopener noreferrer">
    <img id="flow-logo" width="320" height="220" src="./docs/public/logo.jpeg" alt="Flow logo">
  </a>
</p>

<br/>

<p align="center">
  <a href="https://npmjs.com/package/@niuiic/flow"><img src="https://img.shields.io/npm/v/@niuiic/flow.svg" alt="npm package"></a>
  <a href="https://nodejs.org/en/about/releases/"><img src="https://img.shields.io/node/v/@niuiic/flow.svg" alt="node compatibility"></a>
  <a href="https://github.com/niuiic/flow/tree/main/.github/workflows/test.yml"><img src="https://github.com/niuiic/flow/actions/workflows/test.yml/badge.svg" alt="test status"></a>
  <a href="https://github.com/niuiic/flow/tree/main/.github/workflows/coverage.yml"><img src="https://github.com/niuiic/flow/blob/coverage/badge-lines.svg" alt="test coverage"></a>
</p>

# Flow <img width="32" src="./docs/public/flow.svg"/>

> Functional library for TypeScript/JavaScript

- Streaming programming
- Graceful error handling
- Better asynchronous programming
- Lazy evaluation
- TypeScript support

[Read the Docs to Learn More](https://flow.niuiic.com).

## License

[MIT](LICENSE) License © 2023-PRESENT [niuiic](https://github.com/niuiic)