open-index/open-npm huggingface dataset:
npm package: @nuware/emitter
Description: Event Emitter
Author: Dmitry Dudin
Latest version: 0.1.20

# Event Emitter

## Install

```bash
npm install @nuware/emitter --save
```

or

```html
<script defer src="https://unpkg.com/@nuware/emitter@latest/dist/emitter.umd.js"></script>
```

or

```html
<script defer src="https://unpkg.com/@nuware/emitter@latest/dist/emitter.min.js"></script>
```

## Usage

Browser

```javascript
const Emitter = window.nuware.Emitter
```

Node

```javascript
const Emitter = require('@nuware/emitter')
```

or

```javascript
import Emitter from '@nuware/emitter'
```

## Authors

* Dmitry Dudin <dima@nuware.ru>
npm package: @nuware/functions
Description: Useful functions
Author: Dmitry Dudin
Latest version: 0.1.21

# Functions

## Install

```bash
npm install @nuware/functions@latest --save
```

or

```html
<script defer src="https://unpkg.com/@nuware/functions@latest/dist/functions.umd.js"></script>
```

or

```html
<script defer src="https://unpkg.com/@nuware/functions@latest/dist/functions.min.js"></script>
```

## Usage

Browser

```javascript
const { K, I, assoc, map ... } = window.nuware.F
```

Node

```javascript
const { K, I, assoc, map ... } = require('@nuware/functions')
```

or

```javascript
import { K, I, assoc, map ... } from '@nuware/functions'
```

## Authors

* Dmitry Dudin <dima@nuware.ru>
npm package: @nuware/invariant
Description: Simple invariant function
Author: Dmitry Dudin
Latest version: 1.0.2

# invariant

[![npm (scoped)](https://img.shields.io/npm/v/@nuware/invariant.svg)](https://www.npmjs.com/package/@nuware/invariant)
![NPM](https://img.shields.io/npm/l/@nuware/invariant.svg)
![Snyk Vulnerabilities for npm package version](https://img.shields.io/snyk/vulnerabilities/npm/@nuware/invariant.svg)

## Install

```bash
npm install @nuware/invariant --save
```

or

```html
<script defer src="https://unpkg.com/@nuware/invariant@latest/dist/invariant.umd.js"></script>
```

or

```html
<script defer src="https://unpkg.com/@nuware/invariant@latest/dist/invariant.umd.min.js"></script>
```


## Usage

Browser

```javascript
const invariant = window.nuware.invariant
```

Node

```javascript
const {invariant} = require('@nuware/invariant')
```

or

```javascript
import {invariant} from '@nuware/invariant'
```

## API

```javascript
import {
  invariant,
  raiseError
} from '@nuware/invariant'
```

#### ``` invariant :: (*, String message) -> void ```

```javascript
invariant(trueValue, 'if true')

invariant(falseValue, 'if false')
// => Error: Invariant: if false
```

----

#### ``` raiseError :: (String message, String prefix) -> void ```

```javascript
raiseError('some error', 'MyPrefix:')
// => Error: MyPrefix: some error
```

----

## License

MIT License

## Author

Dmitry Dudin <dima@nuware.ru>
npm package: @nuware/lenses
Description: Functional Lenses
Author: Dmitry Dudin
Latest version: 0.1.15

# Lenses

## Install

```bash
npm install @nuware/lenses --save
```

or

```html
<script defer src="https://unpkg.com/@nuware/lenses@latest/dist/lenses.umd.js"></script>
```

or

```html
<script defer src="https://unpkg.com/@nuware/lenses@latest/dist/lenses.min.js"></script>
```

## Usage

Browser

```javascript
const { Prop, Get, Set, Over, Focus } = window.nuware.L
```

Node

```javascript
const { Prop, Get, Set, Over, Focus } = require('@nuware/lenses')
```

or

```javascript
import { Prop, Get, Set, Over, Focus } from '@nuware/lenses'
```

## Example

```javascript
const NameLens = Prop('name')
const NestedLens = Focus(['a', 'b', 'c'])

const a = Set(NameLens)('Value')({})                      // {name: 'Value'}
const b = Get(NameLens)(a)                                // 'Value'
const c = Over(NameLens)((val) => val.toLowerCase()))(a)  // {name: 'value'}

const d = Set(NestedLens)(true)(c)                        // {name: 'value', a: {b: {c: true}}}
const e = Over(NestedLens)((val) => !val))(d)             // {name: 'value', a: {b: {c: false}}}
```

## API

Comming soon...


## Authors

* Dmitry Dudin <dima@nuware.ru>
npm package: @nuware/mvc
Description: MVC framework
Author: Dmitry Dudin
Latest version: 1.0.11
Deprecated: is no longer being developed

# @nuware/mvc

MVC framework

## Install

### NPM

```bash
npm install @nuware/mvc --save
```

## Usage

### Browser

```html
<script src="https://unpkg.com/@nuware/mvc@latest/dist/mvc.min.js"></script>
```
npm package: @nuware/nitro
Description: Signals, Effects & Store
Author: Dmitry Dudin
Latest version: 0.0.15

# Nitro

## Install

```bash
npm install @nuware/nitro --save
```

or

```html
<script defer src="https://unpkg.com/@nuware/nitro@latest/dist/nitro.umd.js"></script>
```

or

```html
<script defer src="https://unpkg.com/@nuware/nitro@latest/dist/nitro.umd.min.js"></script>
```


## Usage

Browser

```javascript
const { createSignal, createStore, combineStores } = window.nuware.Nitro
```

Node

```javascript
const { createSignal, createStore, combineStores } = require('@nuware/nitro')
```

or

```javascript
import { createSignal, createStore, combineStores } from '@nuware/nitro'
```

## Exmaple

```javascript
const setUser = createSignal()
const deleteUser = createSignal()
const deleteAllUsers = createSignal()

const users = createStore({})
users.reset(deleteAllUsers)
users.on(setUser, (state, payload) => {
  const { id, data } = payload
  return assoc(id)(data)(state)
})
users.on(deleteUser, (state, id) => {
  return dissoc(id)(state)
})

const usersCount = users.map((state) => {
  return keys(state).length
})

const onEmptyUsers = usersCount.map((state) => {
  return (state === 0)
})

users.watch((state) => console.log('Users:', state))
usersCount.watch((count) => console.log('Total Users:', count))
onEmptyUsers.watch(isEmpty => isEmpty && console.log('Users is empty!'))

const u1 = {
  id: 'id1',
  data: {
    name: 'User One'
  }
}

const u2 = {
  id: 'id2',
  data: {
    name: 'User Two'
  }
}

setUser(u1)
setUser(u2)

deleteUser(u1.id)
deleteAllUsers()
```

## License

MIT License

## Author

Dmitry Dudin <dima@nuware.ru>
npm package: @nuware/store
Description: State container
Author: Dmitry Dudin
Latest version: 0.3.1

# Store


## Install

```bash
npm install @nuware/store --save
```

or

```html
<script defer src="https://unpkg.com/@nuware/store@latest/dist/store.umd.js"></script>
```

or

```html
<script defer src="https://unpkg.com/@nuware/store@latest/dist/store.min.js"></script>
```


## Usage

Browser

```javascript
const Store = window.nuware.Store
```

Node

```javascript
const Store = require('@nuware/store')
```

or

```javascript
import Store from '@nuware/store'
```

Initialize Store

```javascript
const store = Store({
  any: {
    initial: {
      state: true
    }
  }
})
```


## API

### Store

Factory function return the Store instance. You can pass the initial state of this Store.


### store

Store instance.

### store.ref()

### store.VALUE_EVENT

### store.CHILD_ADDED_EVENT

### store.CHILD_CHANGED_EVENT

### store.CHILD_REMOVED_EVENT


### ref

### ref.child()

### ref.parent()

### ref.get()

### ref.set()

### ref.remove()

### ref.on()

### ref.off()


## Authors

* Dmitry Dudin <dima@nuware.ru>


## License

* [MIT License](https://github.com/nuware/store/blob/master/LICENSE)
npm package: @nuwatop/code-canvas-core
Description: Core components and utilities for code-canvas visualization editor (React)
Latest version: 0.5.39

# @nuwatop/code-canvas-core

Core components and utilities for code-canvas visualization editor.

## Installation

```bash
npm install @nuwatop/code-canvas-core
```

## Usage

### Configuration

Before using the core package, you need to configure the request and upload handlers:

```typescript
import { setCoreConfig } from '@nuwatop/code-canvas-core';

setCoreConfig({
  request: async (config) => {
    // Your request implementation
    return await fetch(config.baseURL, {
      method: 'GET',
      headers: config.headers
    });
  },
  upload: async (file, config) => {
    // Your upload implementation
    const formData = new FormData();
    formData.append('file', file);
    return await fetch(config?.url || '/upload', {
      method: 'POST',
      body: formData,
      headers: config?.headers
    });
  }
});
```

### Components

All And-* components are available for import:

```typescript
import { AndButton, AndInput, AndText } from '@nuwatop/code-canvas-core';
```

### Runtime

Initialize the runtime module:

```typescript
import { initRuntime } from '@nuwatop/code-canvas-core/runtime';

initRuntime({
  utils: yourUtils,
  moduleLoader: async (moduleName) => {
    // Load your module
    return await import(`./modules/${moduleName}`);
  }
});
```

## 发布到 npm（维护者）

在 **`core` 目录**下，先改好 `package.json` 里的 **`version`**（不能和已发布版本重复），登录 npm 官方源后执行：

```bash
npm publish --access public
```

- **`--access public`**：本包是 scoped 包（`@nuwatop/...`），公开到 npmjs 必须加这一项；否则可能按私有包处理。
- **`prepublishOnly`** 已配置为自动 `npm run build`，一般无需先手动 `build`。

若本机默认 registry 是镜像（如 npmmirror，不能 `publish`），可二选一：

```bash
npm publish --access public --registry https://registry.npmjs.org/
```

或在 `core/.npmrc` 中指定 `registry=https://registry.npmjs.org/`（含 token 时不要提交到 Git）。

其他：`npm login`、Automation Token、发布后依赖方 `npm install @nuwatop/code-canvas-core@latest`、Vite 项目可删 `node_modules/.vite` 再启动等，按团队惯例即可。

## License

MIT
npm package: @nuwatop/code-canvas-runtime
Description: Runtime utilities for code-canvas generated applications (React)
Latest version: 0.4.39

# @nuwatop/code-canvas-runtime

Runtime utilities for **code-canvas** generated React applications. Re-exports [`@nuwatop/code-canvas-core`](https://www.npmjs.com/package/@nuwatop/code-canvas-core) and adds command watching, runtime rendering, and related helpers.

## Installation

Peer dependencies: `react`, `react-dom`, `antd`, `zustand`, etc. (see `package.json` → `peerDependencies`).

```bash
npm install @nuwatop/code-canvas-runtime
```

## Usage

Typical imports in generated app code (`Extend.ts` / pages):

```typescript
import {
  createWatchCommands,
  useAndStore,
  useItemStore,
} from "@nuwatop/code-canvas-runtime";

const watchCommandsWithContext = createWatchCommands(() => ({
  // command handlers keyed by action name
}));

export function init(store?: unknown) {
  if (store) {
    watchCommandsWithContext(store as never, "your-session-id");
  }
}
```

Other exports include `RuntimeRenderer`, `ComponentRegistry`, `initRuntime`, `UIUtils`, validation helpers, etc. — see `src/index.ts`.

## 发布到 npm（维护者）

在 **`runtime` 目录**下，先改好 `package.json` 里的 **`version`**（不能和已发布版本重复），登录 npm 官方源后执行：

```bash
npm publish --access public
```

- **`--access public`**：本包是 scoped 包（`@nuwatop/...`），公开到 npmjs 必须加这一项。
- **`prepublishOnly`** 已配置为自动 `npm run build`，一般无需先手动 `build`。

若本机默认 registry 是镜像（如 npmmirror，不能 `publish`），可：

```bash
npm publish --access public --registry https://registry.npmjs.org/
```

或在 `runtime/.npmrc` 中指定 `registry=https://registry.npmjs.org/`（含 token 时不要提交到 Git）。

## License

MIT
npm package: @nuwatop/utils
Description: 一个提供常用类型判断和空值判断的 TypeScript 工具类库
Latest version: 0.1.1

# @nuwatop/utils

一个提供常用类型判断和空值判断的 TypeScript 工具类库。

## 安装

```bash
npm install @nuwatop/utils
# 或
pnpm add @nuwatop/utils
# 或
yarn add @nuwatop/utils
```

## 使用方法

```typescript
import { IsUtils } from '@nuwatop/utils';

// 判断字符串
IsUtils.isString('hello'); // true
IsUtils.isEmptyString(''); // true
IsUtils.isEmptyString('   '); // true

// 判断数字
IsUtils.isNumber(123); // true
IsUtils.isNumber(NaN); // false
IsUtils.isNumber(Infinity); // false

// 判断日期
IsUtils.isDate(new Date()); // true
IsUtils.isValidDate('2024-01-01'); // true
IsUtils.isValidDate('invalid'); // false

// 判断金额
IsUtils.isAmount(100.50); // true
IsUtils.isAmount(-10); // false
IsUtils.isAmountString('1,000.50'); // true
IsUtils.isAmountString('1000.50'); // true

// 判断数组
IsUtils.isArray([1, 2, 3]); // true
IsUtils.isEmptyArray([]); // true
IsUtils.isEmptyArray([1, 2]); // false

// 判断空值
IsUtils.isEmpty(null); // true
IsUtils.isEmpty(undefined); // true
IsUtils.isEmpty(''); // true
IsUtils.isEmpty([]); // true
IsUtils.isEmpty({}); // true

// 判断未定义
IsUtils.isUndefined(undefined); // true
IsUtils.isNull(null); // true
IsUtils.isNullOrUndefined(null); // true
IsUtils.isNullOrUndefined(undefined); // true

// 判断是否有值
IsUtils.hasValue('hello'); // true
IsUtils.hasValue(null); // false
IsUtils.hasValue(undefined); // false
IsUtils.hasValue(''); // false
```

## API 文档

### 字符串判断

- `isString(value: unknown): value is string` - 判断是否为字符串
- `isEmptyString(value: unknown): boolean` - 判断字符串是否为空（包括空字符串、null、undefined）

### 数字判断

- `isNumber(value: unknown): value is number` - 判断是否为有效数字（排除 NaN 和 Infinity）

### 日期判断

- `isDate(value: unknown): value is Date` - 判断是否为 Date 对象
- `isValidDate(value: unknown): boolean` - 判断是否为有效的日期字符串或日期对象

### 金额判断

- `isAmount(value: unknown): boolean` - 判断是否为金额（正数，可包含小数）
- `isAmountString(value: unknown): boolean` - 判断是否为金额字符串（支持千分位分隔符）

### 数组判断

- `isArray<T>(value: unknown): value is T[]` - 判断是否为数组
- `isEmptyArray(value: unknown): boolean` - 判断数组是否为空

### 空值判断

- `isEmpty(value: unknown): boolean` - 判断值是否为空（null、undefined、空字符串、空数组、空对象）
- `hasValue<T>(value: T | null | undefined): value is T` - 判断值是否有值（不为空、不为未定义）

### 未定义判断

- `isUndefined(value: unknown): value is undefined` - 判断是否为 undefined
- `isNull(value: unknown): value is null` - 判断是否为 null
- `isNullOrUndefined(value: unknown): value is null | undefined` - 判断是否为 null 或 undefined

## License

MIT
npm package: @nuwcdivnpt/stigman-watcher
Description: CLI that watches a path for STIG test result files on behalf of a STIG Manager Collection.
Latest version: 1.6.5

<p align="center">
  <img width="125" src="https://raw.githubusercontent.com/NUWCDIVNPT/stigman-watcher/main/icon.svg">
</p>
<h1 align="center"> STIG Manager Watcher </h1>

<a href="https://www.npmjs.com/package/@nuwcdivnpt/stigman-watcher"><img src="https://img.shields.io/npm/v/@nuwcdivnpt/stigman-watcher"></a>

A [STIG Manager](https://github.com/nuwcdivnpt/stig-manager) CLI client that watches a path for test result files formatted as CKL or XCCDF and posts the results to a Collection.

The client is suitable for use as a service or daemon, as a scheduled task, in automated testing pipelines, or from the command line. Test result files discovered on the path and sub-paths are parsed and the parsed content is pushed to a timed cargo queue. If configured to do so, the queue worker creates new Assets as needed and updates STIG assignments. Reviews from the result files are then posted to the corresponding Asset.

## Requirements
- Node.js 14+ and npm, if Watcher is run from source or as a global npm module
- An OIDC Provider supporting the Client Credentials Flow which issues tokens scoped for the STIG Manager API.
- [STIG Manager API](https://github.com/nuwcdivnpt/stig-manager) with a Collection grant of "Manage" for the client

## Installation and Usage

You can install Watcher using one of these methods:

### Copy a Release binary to a destination of your choice and execute
```
$ ./stigman-watcher-linuxstatic [options]
```
or
```
C:/> stigman-watcher-win.exe [options]
``` 
### Install globally via NPM and run the module 
```
$ npm install --global @nuwcdivnpt/stigman-watcher
$ stigman-watcher [options]
```

### Clone this repo and run the source code
```
$ git clone https://github.com/NUWCDIVNPT/stigman-watcher.git
$ node index.js [options]
```

## Wiki

Please see the [Wiki](https://github.com/nuwcdivnpt/stigman-watcher/wiki) for documentation.
npm package: @nuwe/components
Description: Nuwe components library
Author: Edgar Gago Carrillo
Latest version: 0.7.8

# components

Nuwe componenets libray poweered by MaterialUI, Nivo and other cool Libraries

## Install

Clone the repo

```shell
git clone https://github.com/nuwe-io/components
```

Install dependencies

```shell
npm install
```

## Working with branches and gitflow

```shell
   git branch [branch_name]
   git checkout [branch_name]
```

### Push to branch

```shell
    git add .
    git commit -m "Title" -m "Description"
    git push origin [branch_name]
```

## Usage

```javascript
import { Button } from "@nuwe/components";

const MyComponent = () => {
  return <Button>Text</Button>;
};
```

- Running locally:

```shell
    npm run storybook
```

To run the unit tests:

```shell
    npm run test #Not yet configured
```

## Deploy & public to NPM & Chromatic

CD/CI setup with vercel

Deplopy and managed with [storybook](https://storybook.js.org) & [chromatic](https://chromatic.com)

https://github.com/portexe/react-pwr

### 1 Publish and check with chromatic

- For publishing the library to chromatic:

```shell
    npm run chromatic # Publish Storybook and run visual tests
```

### 2 Update npm package

Checkout to the MAIN branch and modify the version of the package version

Build with rollup:

```shell
    npm run build-lib
```

After that login and push to npm

```shell
    npm login
```

```shell
    npm publish --access public
```

Push to the branch

```shell
git add .
git commit --m "RELEASE VERSION X.X.X"
git push --origin main
```

This will automtically trigger vercel

## Build

There maybe apear some build errors (rollup import configs mainly).

If that happens, go to: rollup.config.js and add the import creating the error:

```javascript
// rollup.config.js
export default [{
    ...,
    plugins: [
    ...,
    commonjs({
         namedExports: {
             'library-name':["Export1","Export2"]
         }
    })
    ]
}]
```

## Contact info

You can get in touch via:

[Edgar Gago Carrillo](https://www.linkedin.com/in/gagocarrilloedgar/)
[Add Contributor name here](https://www.linkedin.com/in/name/)

or

> Edgar Gago | hello@nuwe.io

## Licence

[MIT](https://opensource.org/licenses/MIT)
npm package: @nuwe/js-eslint-config
Description: Nuwe js-project-based eslint configuration
Latest version: 0.0.1

# js-eslint-config

Nuwe js-project-based eslint configuration

## Clone & Install

```sh
    npm i @nuwe/js-eslint-config
```


```sh
    git clone https://github.com/nuwe-io/js-eslint-config
```

## Empezar a trabajar

Para contribuir simplemente puedes:

1. Clonar el repositorio
2. Crear tu propia rama --> añade un nombre que tenga sentido con el update o feature que quieras implementar
3. Hacer push  a tu rama
4. Pull request y pedir un code review para poder incluir los cambios


## Licence 
[MIT](https://opensource.org/licenses/MIT)
npm package: @nuworks/http-server
Description: Common code for NW's http/api based applications
Author: Ervinne Sodusta
Latest version: 0.2.4

# Developer Notes

## TODO Bugs

- The logger.debug does not currently work on the consumers of this library despite setting NODE_ENV=development.
Logger's console logging level is confirmed to be set to "silly" though. Check this issue out later

## TODO Features

- Add the option to boot the application without triggering the background jobs
npm package: @nuwton/sdk
Description: ![GitHub package.json version](https://img.shields.io/github/package-json/v/Nuwton/nuwton-sdk) ![GitHub](https://img.shields.io/github/license/Nuwton/nuwton-sdk) ![GitHub Workflow Status](https://img.shields.io/github/workflow/status/Nuwton/nuwton-sdk/Bui
Latest version: 0.1.5

# @nuwton/sdk

![GitHub package.json version](https://img.shields.io/github/package-json/v/Nuwton/nuwton-sdk) ![GitHub](https://img.shields.io/github/license/Nuwton/nuwton-sdk) ![GitHub Workflow Status](https://img.shields.io/github/workflow/status/Nuwton/nuwton-sdk/Build)

This SDK is a collection of tools used to interact with the Nuwton API and smart contracts.

## Usage

### Install

This package has a peer dependency on [etherjs](https://docs.ethers.io/v5/).

Install with

```bash
yarn add @nuwton/sdk ethers
```

or

```bash
npm install @nuwton/sdk ethers --save
```

### Documentation

Read the [complete documentation](./doc/index.md)

## Dev

### Setup

Install dependencies with `yarn`

- **Dev**: `yarn dev`
- **Build**: `yarn build`

### Release

- Create a [Personal access token](https://github.com/settings/tokens/new?scopes=repo&description=release-it) (Don't change the default scope)
- Create an `.env` (copy `.env.template`) and set you github personal access token.
- `yarn release` will run all the checks, build, and publish the package, and publish the github release note.