open-index/open-npm huggingface dataset:
npm package: @restatedev/xstate-test
Description: Utility for testing xstate with Restate
Author: Restate developers
Latest version: 2.0.0

# `@restatedev/xstate-test`

Test utility for Restate + XState.

## Usage

```ts
import { createMachine, assign } from "xstate";
import { xstate } from "@restatedev/xstate";
import { createRestateTestActor } from "@restatedev/xstate-test";

const machine = xstate(
  "counter",
  createMachine({
    context: { count: 0 },
    on: {
      inc: { ... },
    },
  }),
);

it("example test", async () => {
  using actor = await createRestateTestActor({ machine });
  await actor.send({ type: "inc" });
  const snap = await actor.snapshot();
  expect(snap.context.count).toBe(1);
});
```

## API

- `createRestateTestActor({ machine })`: Starts the actor.
- `actor.send(event)`: Sends events.
- `actor.snapshot()`: Gets current state.
npm package: @restaudeal/ng2-tel-input
Description: An Angular 2 wrapper for intl-tel-input library
Author: sonigaurav119@gmail.com
Latest version: 3.0.1

<h1 align="center"> This repository is no longer maintained.</h1>

# Angular 2+ wrapper for intl-tel-input

# Installation

Run following command to install ng2-tel-input

```sh
npm install ng2-tel-input intl-tel-input --save
```

After install, you need to add **intlTelInput.css**, **intlTelInput.min.js**, **utils.js**.

In case of @angular/cli, add 2 files in your `angular.json`. 

For example,

- Include **intlTelInput.css** in "styles" at your `angular.json` file  :
```
  "styles": [
    ...
    "node_modules/intl-tel-input/build/css/intlTelInput.css",
    ...
  ]
```

- Include **intlTelInput.min.js**, **utils.js** in "scripts" at your `angular.json` file  :
```
  "scripts": [
    ...
    "node_modules/intl-tel-input/build/js/intlTelInput.min.js"
    ...
  ]
```


Now add Ng2TelInputModule into your AppModule. For example,

```js
import {Ng2TelInputModule} from 'ng2-tel-input';
```

Once done, we are ready to use this library.

# How to use?

In order to use this directive, you need to add "ng2TelInput" directive with "[ng2TelInputOptions]" options to your text field. For example,

```html
<input type="text"
  ng2TelInput
  [ng2TelInputOptions]="{initialCountry: 'in'}"
  (hasError)="hasError($event)"
  (ng2TelOutput)="getNumber($event)"
  (intlTelInputObject)="telInputObject($event)"
  (countryChange)="onCountryChange($event)" />
```

# Note
**(intlTelInputObject)** returns **intl-tel-input** instance.
By default this package get **utils.js** from below link:-
https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/16.0.1/js/utils.js
But you can also provide your utilsScript file by using below options:-

[ng2TelInputOptions]="{initialCountry: 'in', utilsScript: 'node_modules/intl-tel-input/build/js/utils.js'}"

# How to use this instance?
You can use it perform any functionality that is available on intl-tel-input plugin. **For example**, in your component,
```
telInputObject(obj) {
    console.log(obj);
    obj.setCountry('in');
  }
```
npm package: @restcloud-npm/rc-lowcode-component
Description: Antd for LowCode
Latest version: 1.3.9

````markdown
# restcloud-frontend-lowcode-component

前端低代码组件库

## 低代码组件开发说明

#### 地址

1. 官网: https://lowcode-engine.cn/

2. 文档地址: https://lowcode-engine.cn/site/docs/guide/quickStart/intro

3. API地址: https://lowcode-engine.cn/site/docs/api/

4. 协议地址: https://lowcode-engine.cn/site/docs/specs/lowcode-spec

5. fusionUI: https://fusion.design/


#### npm搭建步骤

```sh
npm init @alilc/element 项目名称
请选择引擎生态元素类型: 组件/物料
生态元素包名: 项目名称
简要介绍生态元素: 项目名称
作者名: xxx
请选择包模式: react-组件库
```

#### 目录结构

```
项目名称
├── build (项目打包文件夹, 运行npm run lowcode:build命令后自动生成)
│   ├── lowcode
│   │   ├──render (打包后的组件库压缩文件夹)
│   │   ├── assets-dev.json (打包后的低代码引擎的配置: 本地)
│   │   ├── assets-prod.json (打包后的低代码引擎的配置: 线上, 如果有npm库可运行npm publish将包发到npm)
│   │   ├── meta.js (组件库压缩文件)
│   │   ├── view.css (组件库压缩文件)
│   │   └── view.js (组件库压缩文件)
├── lowcode (此文件夹下的文件主要是组件属性设置, 如果没有可运行npm run lowcode:dev命令后自动生成,或手动创建, 此目录下的所有组件只能使用@alifd/next或react原生标签)
├── src (项目代码文件夹)
│   ├── index.js (组件出口文件)
│   └── index.scss (组件样式的源码文件)
├── README.md (组件说明及API)
└── package.json (项目运行命令和依赖版本)

//其他没有说明的文件夹或文件可以忽略, 但尽量不要删除
```

#### 打包后说明(本地)

```js
如果使用本地打包的组件, 可根据以下步骤添加到低代码引擎中
1.执行npm run lowcode:build;
2.进入build/lowcode;
3.复制meta.js、view.css、view.js这三个文件, 到当前目录的render文件夹下;
4.复制整个render文件夹到低代码引擎源码的public文件夹下;
5.调整低代码引擎源码的public/assets.json的packages和components; //对应的代码在build/lowcode/assets-dev.json中, 代码如下图
6.运行低代码引擎后打开左侧组件库就能看到新增的组件
```


````

![image-20240305170121760.png](https://thumbnail0.baidupcs.com/thumbnail/c96292cd4l0522c467126f4aa80401e1?fid=3996987046-250528-201404337560786&time=1710122400&rt=sh&sign=FDTAER-DCb740ccc5511e5e8fedcff06b081203-rkPl5sIx0mPYXQF2exjPCaEwdhg%3D&expires=8h&chkv=0&chkbd=0&chkpc=&dp-logid=481199383924615960&dp-callid=0&file_type=0&size=c710_u400&quality=100&vuk=-&ft=video)

\#### 打包后说明(线上)

\`\`\`sh
如果要把组件库发布到线上,  可根据以下步骤添加到npm库并调整低代码引擎源码的配置
1.执行以下命令
npm run lowcode\:build
npm publish //如果npm没有登录, 请执行npm login进行登录, 并创建对应的npm组件库, 如果有可以不用创建

2.完成以上命令后, 调整低代码引擎源码的public/assets.json的packages和components; //对应的代码在build/lowcode/assets-prod.json中, 代码如下图
\`\`\`

![image-20240305170121760.png](https://thumbnail0.baidupcs.com/thumbnail/bab2f0ed0v077414d5b70908d058fe19?fid=3996987046-250528-8051049706804&time=1710122400&rt=sh&sign=FDTAER-DCb740ccc5511e5e8fedcff06b081203-uokiMcxMLNYaRXFS1N5qTcnG4R0%3D&expires=8h&chkv=0&chkbd=0&chkpc=&dp-logid=481176457838464536&dp-callid=0&file_type=0&size=c710_u400&quality=100&vuk=-&ft=video)
npm package: @restdocs/core
Description: Core DSL engine for REST API documentation from tests
Author: Jae Song Choi
Latest version: 0.3.2

# @restdocs/core

Core DSL engine for @restdocs - fluent API documentation from tests.

## Installation

```bash
npm install @restdocs/core
```

## Quick Start

```typescript
import { api, field } from '@restdocs/core';

api.document('POST /api/users', {
    description: 'Create a new user',
    tags: ['Users'],
    request: {
        email: field.email().required(),
        name: field.string().required(),
    },
    response: {
        id: field.uuid(),
        email: field.email(),
        name: field.string(),
    },
    statusCode: 201,
});
```

## Features

- 🔧 Fluent DSL API with type safety
- 📝 Schema validation and inference
- 🎯 Zero runtime dependencies
- 📦 Dual package (CJS + ESM)
- ✅ TypeScript first

## Documentation

See [main documentation](https://github.com/json-choi/restdocs#readme) for full API reference.

## License

MIT
npm package: @restdocs/generators
Description: Output generators for @restdocs (OpenAPI, Markdown, TypeScript)
Author: Jae Song Choi
Latest version: 0.3.2

# @restdocs/generators

Output generators for @restdocs - OpenAPI, Markdown, and TypeScript.

## Installation

```bash
npm install @restdocs/generators
```

## Supported Formats

### OpenAPI 3.0

```typescript
import { generateOpenAPI } from '@restdocs/generators/openapi';

const spec = generateOpenAPI(docs, {
    info: {
        title: 'My API',
        version: '1.0.0',
    },
});
```

### Markdown

```typescript
import { generateMarkdown } from '@restdocs/generators/markdown';

const markdown = generateMarkdown(docs);
```

### TypeScript

```typescript
import { generateTypeScript } from '@restdocs/generators/typescript';

const types = generateTypeScript(docs);
```

## Features

- 📄 OpenAPI 3.0 specification generation
- 📝 Clean Markdown documentation
- 🔷 TypeScript interface generation
- 🎯 Multiple output formats from single source

## Documentation

See [main documentation](https://github.com/json-choi/restdocs#readme) for full generator options.

## License

MIT
npm package: @restdocs/jest
Description: Jest integration for @restdocs
Author: Jae Song Choi
Latest version: 0.3.2

# @restdocs/jest

Jest integration for @restdocs - automatic documentation generation from tests.

## Installation

```bash
npm install --save-dev @restdocs/jest
```

## Setup

### jest.config.js

```javascript
module.exports = {
    setupFilesAfterEnv: ['@restdocs/jest'],
    reporters: [
        'default',
        [
            '@restdocs/jest/reporter',
            {
                outputDir: './docs/api',
                formats: ['openapi', 'markdown', 'typescript'],
                openapi: {
                    info: {
                        title: 'My API',
                        version: '1.0.0',
                    },
                },
            },
        ],
    ],
};
```

## Usage

```typescript
import request from 'supertest';
import { api, field } from '@restdocs/core';

describe('Users API', () => {
    it('creates a user', async () => {
        await request(app).post('/api/users').send({ email: 'test@example.com' });

        api.document('POST /api/users', {
            description: 'Create a new user',
            request: {
                email: field.email().required(),
            },
            response: {
                id: field.uuid(),
            },
        });
    });
});
```

## Features

- 🎯 Automatic test context tracking
- 📄 Multi-format output generation
- 🔧 Custom Jest reporter
- ✅ Zero configuration after setup

## Documentation

See [main documentation](https://github.com/json-choi/restdocs#readme) for full configuration options.

## License

MIT
npm package: @resting/rnasr
Description: A helper for building `react-native` `apk`, `aab` and rename the release accordingly.
Author: resting
Latest version: 1.2.4

# React native assembleRelease 

A helper for building `react-native` `aab`, `apk` and rename the release accordingly.

### What it does
Adds the `applicationId`, `versionName` and `versionCode ` declared in `app/build.gradle` to the built `apk`.
With version 1.2.0, 
- datetime is also added to filename.
- `bundleRelease` is now the default. `app:assembleRelease` is now under `-o` flag.


### Features
- Does `./gradlew assembleRelease` in project folder.
- Rename packaged `apk` with `applicationId`, `versionName` and `versionCode` suffix.
- Open finder to `apk` 

#### Example of `apk` filename
```bash
./android/app/build/outputs/apk/release/app-release-${appId}-${appVer}-b${appBuild}-${_datetime}.apk
```

### Install globally
```bash
$ npm install -g @resting/rnasr
```
Or see [without install](#without-install)

### Usage
```bash
$ projectfolder > rnasr
```

### Without install
```bash
$ projectfolder > npx @resting/rnasr
```