open-index/open-npm huggingface dataset:
npm package: 2minapi
Description: This npm package automates the setup of a basic Express API, allowing users to choose recommended packages and generating an `index.js` file with a customizable template.
Author: underctrl
Latest version: 2.0.2

# Express API Setup

## Overview

This npm package automates the setup of a basic Express API, allowing users to choose recommended packages and generating an `index.js` file with a customizable template.

## Installation

To use this package, follow these steps:

1. Install the package globally:

   ```bash
   npm install -g express-api-setup

Usage
The setup script will prompt you to choose whether to install recommended packages (Express, MongoDB, Mongoose, Nodemon) and generate an index.js file with a customizable template.

Scripts
setup.js: The main script that handles the setup process.
index.js: The generated file containing the Express API template.
Dependencies
chalk: For terminal text styling.
chalk-animation: For terminal animations.
inquirer: For interactive command-line prompts.
shelljs: For executing shell commands in Node.js.
Contributing
If you'd like to contribute to this project, feel free to open issues or submit pull requests.

License
This project is licensed under the MIT License.
npm package: 2miners.js
Description: A JavaScript library for interacting with the 2miners API
Author: LockBlock-dev
Latest version: 1.0.1
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# 2miners.js

Made with [![axios](https://img.shields.io/github/package-json/dependency-version/LockBlock-dev/2miners.js/axios)](https://www.npmjs.com/package/axios)

[![GitHub stars](https://img.shields.io/github/stars/LockBlock-dev/2miners.js.svg)](https://github.com/LockBlock-dev/2miners.js/stargazers)

2miners.js is a Node.js module that allows you to easily interact with the 2miners API.

• Promise based

• Performant

• 100% coverage of the 2miners API


## Installation

• Download [NPM](https://www.npmjs.com/get-npm) and [NodeJS](https://nodejs.org)

With GitHub :

• Download the project or clone it

• Go to the 2miners.js folder and do `npm install`

• Require the [index.js](/index.js)

With NPM :

• Download the project

• Do `npm install 2miners.js`

• Require the library


## Documentation

See the [API documentation](/API.md).


## Example usage

### Using the library

```js
const { Client } = require("2miners.js")

const client = new Client("pool") //example : ETH or solo-ETH

client.stats().then(data => {
    console.log(data)
})

//OR

const myFunc = async () => {
    const data = await client.stats()
    console.log(data)
}

myFunc()
```

The library is async, be sure to use [async functions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/async_function#syntax) or [.then()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/then#syntax)


## Credits

[2miners API](https://apidoc.2miners.com/)


## Copyright

See the [license](/LICENSE)
npm package: 2mqjs
Description: Архитектурная микробиблиотека для веб-приложений без фреймворков: компоненты, шина событий, воркеры, задачи, стор.
Latest version: 0.0.4

# 2mqjs — Микроархитектура для Web-приложений

<p align="center">
  <img src="https://raw.githubusercontent.com/poliklot/2mqjs/master/assets/logo.svg" alt="2mqjs logo" width="420"/>
</p>

<p align="center">
  <a href="https://www.npmjs.com/package/2mqjs"><img src="https://img.shields.io/npm/v/2mqjs.svg" alt="npm version"></a>
  <a href="https://packagephobia.com/result?p=2mqjs">
    <img src="https://badgen.net/packagephobia/install/2mqjs" alt="install size">
  </a>
  <img src="https://img.shields.io/badge/TypeScript-Strict-blue" alt="TypeScript">
  <img src="https://img.shields.io/badge/license-MIT-green.svg" alt="license">
</p>

> **2mqjs** — архитектурная микробиблиотека для веб‑приложений без тяжёлых фреймворков. Даёт чёткую структуру: разделяет UI, бизнес‑логику, коммуникацию и порядок инициализации.

---

## 📚 Модули

* [**Components**](./docs/COMPONENTS.md) — ленивые UI‑модули
* [**Ports**](./docs/PORTS.md) — единая событийная шина
* [**Workers**](./docs/WORKERS.md) — бизнес‑логика вне main thread
* [**Tasks**](./docs/TASKS.md) — планировщик инициализаций и сценариев
* [**Store**](./docs/STORE.md) — глобальное состояние вне основного потока

---

## ✨ Особенности

* Декомпозиция на изолированные слои.
* Ленивая инициализация UI и тяжёлой логики.
* Единая событийная шина для всех слоёв.
* Планировщик запуска и зависимостей.
* Минимальный вес, строгая типизация.

---

## 📦 Установка

```bash
npm i 2mqjs
# или
yarn add 2mqjs
# или
pnpm add 2mqjs
```

`package.json`:

```jsonc
{
  "type": "module"
}
```

---

## 🧩 Быстрый старт

### 1) Worker

```ts
import { registerWorker, emitPort } from '2mqjs/workers';

await registerWorker({
  name: 'productData',
  src: () => import('./workers/productData.worker?worker'),
});

emitPort('productData:init', initialState);
```

### 2) Component

```ts
import { registerComponent, runComponentLoader } from '2mqjs/components';

registerComponent({
  name: 'product-card',
  load: () => import('./components/product-card'),
  when: 'visible',
  hasDisplay: true,
});

runComponentLoader();
```

### 3) Tasks

```ts
import { registerTask, runTasks } from '2mqjs/tasks';

registerTask({
  id: 'bootstrap-product-data',
  stage: 'bootstrap',
  run: async () => {
    // ...
  },
});

await runTasks();
```

---

## 🛠 Рецепты

* **Store** — глобальное состояние в воркере с persist ([docs](./STORE.md))
* **Tasks + Workers** — ожидание готовности и запуск сценариев
* **Components + Ports** — UI реагирует на события без прямых связей

---

## 🧾 Лицензия

[MIT](./LICENSE)

---

📌 Полная документация — в папке [`docs/`](./docs)