open-index/open-npm huggingface dataset:
npm package: 2d_gam
Description: A lightweight es6 Library to develop 2d games.
Author: 2d-Gam & Co
Latest version: 1.12.3

# 2dgam

2d-Gam is a library for Es6 to develop 2d games  🤘🤠.

see also: [2d-Reactgam](https://npmjs.com/package/2d-reactgam) 

## Installition.

- Donot install it per npm for better exprience

- Clone the repo:
```bash
  git clone https://github.com/2d-Gam/2d-gam
```

- Unpkg
```html
  <script src="https://unpkg.com/2d_gam/@1.12.3/umd/2d-gam.min.js"></script>
```
then you will find it in `window.gam`

## Documentation.

- [Github](https://github.com/2d-Gam/2d-gam)

## Contact Us 📨.

If you have any suggestions or a seucrity issue you acn visit our github page or contact us per Email **abdelrahmanshaheen2007@gmail.com**.

## History ⛑.
<ul>
<li>v1.12.3 First release under the name 2d_gam</li>
</ul>

2d-Gam & Co
npm package: 2d_reactgam
Description: A lightweight react library to develop 2d games.
Author: 2d-Gam & Co
Latest version: 1.12.6

# 2d-Reactgam

2d-reactgam is a library for react to develop 2d games 🤘🤠. 
see also: [2d_gam](https://npmjs.com/package/2d_gam) 

## Installition. 

- npm:
```bash
npm install 2d_reactgam
```
- yarn:
```bash 
  yarn add 2d_reactgam
```

## Documentation. 

- [Github](https://github.com/2d-Gam/2d-reactgam) 

## Contact Us 📨. 
If you have any suggestions or a seucrity issue you acn visit our github page or contact us per Email **abdelrahmanshaheen2007@gmail.com**.

## History ⛑. 

<ul> <li>v1.12.6 First release under the name 2d_reactgam</li> </ul> 

2d-Gam & Co
npm package: 2dev
Description: A simple web-based directory listing tool - example usage of remote terminal
Latest version: 0.1.3

# 2dev

一个简单的基于Web的目录查看工具，展示如何使用 pnpm workspace + Koa + React 构建可通过 npx 使用的CLI工具。

## 功能

- 📁 显示当前目录的文件列表（排除隐藏文件）
- 🌐 Web界面展示
- 📦 可通过 npx 直接使用

## 快速开始

### 使用 npx（发布到npm后）

```bash
npx 2dev
```

然后访问 http://localhost:3000

### 全局安装

```bash
npm install -g 2dev
# 或
pnpm install -g 2dev

# 使用
2dev
```

## 开发

### 安装依赖

```bash
pnpm install
```

### 开发模式

开发模式下，前端和后端分别运行：

- 前端：Vite开发服务器（默认端口5173）
- 后端：Koa API服务器（默认端口3000）
- 前端通过proxy访问后端API

```bash
# 同时启动前后端
pnpm dev

# 或分别启动
pnpm dev:frontend
pnpm dev:backend
```

### 构建

```bash
pnpm build
```

### 本地测试

```bash
# 构建并启动生产环境
pnpm build
pnpm start
```

访问 http://localhost:3000

## 发布到 npm

1. **登录 npm**
   ```bash
   npm login
   ```

2. **修改包名**（如果 `2dev` 已被占用）
   编辑 `package.json`，修改 `name` 字段为可用的包名。

3. **发布**
   ```bash
   npm publish
   ```

   注意：发布时会自动执行 `prepublishOnly` 脚本构建项目。

4. **测试发布的包**
   ```bash
   npx your-package-name
   ```

## 项目结构

```
2dev/
├── packages/
│   ├── frontend/          # React + Vite前端
│   └── backend/           # Koa2后端API
├── bin/
│   └── cli.js            # CLI入口文件
├── pnpm-workspace.yaml   # pnpm workspace配置
└── package.json          # 根package.json（CLI配置）
```

## 技术栈

- **前端**: React 19 + Vite 7 + TypeScript
- **后端**: Koa 3 + @koa/router + TypeScript
- **包管理**: pnpm workspace
- **构建工具**: Vite (前端) + tsc (后端)

## 环境说明

- **开发环境**: 前后端独立运行，前端通过proxy访问后端
- **生产环境**: 后端托管前端dist静态资源，单一服务端口

## API接口

- `GET /api/health` - 健康检查
- `GET /api/files` - 获取当前目录文件列表（排除隐藏文件）

## License

MIT
npm package: 2diff
Description: Node.js object difference
Author: Dimitry Ivanov
Latest version: 3.1.2

# Node.js object difference

## 2diff

## Instalation

`npm i -S 2diff`

## Usage

```javascript
const diff = require('2diff');

const before = {c: 3, a: 1, b: '2', e: {x: 9}};
const after = {a: 1, b: 1, e: {x: 9}, f: {x: 9}};

const result = diff(before, after);

console.log(result);
```

Output:

```
[
  { removed: true, key: 'c', value: 3 },
  { removed: true, key: 'b', value: '2' },
  { added: true, key: 'b', value: 1 },
  { added: true, key: 'f.x', value: 9 }
]
```
npm package: 2dmatrix
Description: Create 2d Matrix
Author: Hamza Atmaca
Latest version: 1.0.1

# 2DMatrix

A simple yet powerful TypeScript library for generating and displaying 2D matrices with CLI table formatting.

## Installation

```sh
npm install 2dmatrix
```

## Features

- Generate random 2D matrices with customizable dimensions and value ranges.
- Display matrices in a well-formatted CLI table with coordinates.
- Fully written in TypeScript with type definitions included.

## Usage

```ts
import mx from "2dmatrix";

mx.openCLI = true; // Enable CLI table display
mx.tableWidth = 20; // Set column width

const createRandomMatrix = mx.randomMx(2, 3, 50);
console.log(createRandomMatrix);
```

### Output Example

```
╔══════╤══════╤══════╗
║  12  │  34  │  23  ║
║ (1,1)│ (1,2)│ (1,3)║
╟──────┼──────┼──────╢
║  45  │  32  │  11  ║
║ (2,1)│ (2,2)│ (2,3)║
╚══════╧══════╧══════╝
```

## API

### `randomMx(rows: number, cols: number, range: number): RandomMx`

Generates a random matrix with given rows and columns, and fills it with random numbers up to the specified range.

#### Parameters:

- `rows` - Number of rows in the matrix.
- `cols` - Number of columns in the matrix.
- `range` - Maximum value for random numbers.

#### Returns:

```ts
{
  randomMatrix: number[][];
  coordinates: Coordinate[];
  matrixSize: string;
}
```

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

## Author

Developed by **Hamza Atmaca**.
npm package: 2do-cli
Description: 2do inside your command line
Author: Hosein2398
Latest version: 1.1.7

# 2do-cli [![Build Status](https://travis-ci.org/hosein2398/2do-cli.svg?branch=master)](https://travis-ci.org/hosein2398/2do-cli) ![Download-week](https://img.shields.io/npm/dw/2do-cli.svg?style=flat-square)
Commnad line todo app. 

<div align="center"> 
<img  src="https://raw.githubusercontent.com/hosein2398/File-Container/master/2do/drawing.png"/> 
</div>

## Demo
<div align="center"> 
<img  src="https://raw.githubusercontent.com/hosein2398/File-Container/master/2do/2do_new.gif"/>
</div>

## Installation
```
npm i -g 2do-cli
```
Or if using Yarn:
```
yarn global add 2do-cli
```

## Usage
- [Initializing](#initializing)
- [Adding a file](#adding-a-file)
- [Show todo](#show-todo)
- [Check todo](#check-todo)
- [Listing](#listing)
- [Removing](#removing)

---

### Initializing 
Open up any repository that you want to use 2do-cli indside.   
Then type:  
```
2do
```  
2do-cli will start, after that write :  
```
init
```   
And 2do-cli will generate a 2do.json file in you repo.  

---

### Adding a file
To work with 2do-cli you have add a file and then todos related to that.   
Lets say you have a file named `main.js` and you want to add some todos for this file, to do so (after inializing 2do-cli in your repo) you have to type:   
```
add main.js 'Here is my first todo for main.js' 
```  
After a while you might know that you want to add another todo for same file, so just use same command like:  
```
add main.js 'Here is my second todo for main.js '
```  

---

### Show todo
Now if you want to see all todos of `main.js` you simply write:    
```
show main.js
```   
and all todos of that file will appear.  

---

### Check todo
So what if you want to know you have completed a todo or not. There is default `status` field for every todo,
and it's value is set to `undone` by default. If you want to change it so that you know your todo is done:
```
check main.js 4
```   
This will set status of fourth todo of main.js to `done`.  

---

### Listing 
You can list all of files which have todos in current directory and select any one that you want, by typing :  
```
list
```  

---

### Removing
You can remove a file, which removes all of it's todos too, or you can only remove a todo of a file, to do prior one you just write:  
```
delete main.js
```  
And if you want to remove only second todo of this file you go like:  
```
delete main.js 2
```  
Above command will remove second todo of main.js .  

---

### Version
To get current version just type :
```
version
```