open-index/open-npm huggingface dataset:
npm package: @rovast/api-recorder
Description: A tool for recording your api
Latest version: 0.0.5

# api-recorder


<p align="center">
  <a href="https://img.shields.io/github/issues/rovast/record-api/issues">
    <img src="https://img.shields.io/github/issues/rovast/record-api" height="18"
         alt="Issues"></a>
  
  <a href="https://img.shields.io/github/license/rovast/record-api">
    <img src="https://img.shields.io/github/license/rovast/record-api" height="18"
         alt="GitHub license"></a>
  
  <a href="https://www.npmjs.com/package/@rovast/api-recorder">
    <img src="https://badge.fury.io/js/@rovast%2Fapi-recorder.svg" height="18"
         alt="GitHub license"></a>
</p>


[简体中文](README.md) | [English](README-en.md)

---

## 使用场景

录制浏览网站的 API，记录结果，并导出至 Postman。可用于以下场景：

### 1. MOCK 已有网站

通过录制 API 和其结果，可以将其返回结果作为数据 MOCK 的返回值。这样就可以达到快速 mock 已有网站的目的。

### 2. 补录 API 文档

对于已有的网站，如果需要补录 API 文档，可直接通过该工具打开浏览器访问网站，导入 Postman 即可。


## 使用方法

### 1. 安装

```bash
npm i -g @rovast/api-recorder
```

### 2. 使用

```bash
api-recorder
```

会自动打开浏览器，直接访问自己需要录制的网站即可。

关闭浏览器时，会自动在配置的 `output` 中生成文件

## 配置

```bash

Usage: index [options]

A tool for record your api

Options:
  -n, --name <name>             collection name (default: "record-api")
  -o, --output <output_file>    output json file path (default: "postman-collection.json")
  -b, --browser <execute_path>  browser execute path (default: "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome")
  -m, --match <regex>           match the api path (default: "/api/")
  -h, --help                    display help for command
```


## 贡献

```bash
npm run build # 构建 TS 至 JS
npm run dev:start # 监听变化，实时编译
```
npm package: @rovast/emmet.css
Description: Emmet inspired css util.
Author: rovast
Latest version: 1.0.0

# emmet.css

Just focus on HTML Writing, without dancing between css file and html file.

Based on [emmet](https://docs.emmet.io/cheat-sheet/) short rules.

## Quick start

```html
<div class="d-f ai-c jc-sb fz-12 c-fff">
    <div class="bgc-333 w-100p pl-20">< back</div>
    <div class="bgc-666 w-100p tc">detail</div>
    <div class="bgc-999 w-100p tr pr-20">settings</div>
</div>
```

![flex](https://github.com/rovast/emmet.css/raw/master/example/flex.png)

## Thanks to

- [Emmet](https://docs.emmet.io/cheat-sheet/)
- [Gulp](https://gulpjs.com/)
npm package: @rove-team/locale
Description: A library for handling different language resources.
Author: Rove Team Developers
Latest version: 1.2.1

# How to use

You can see the example folder, if you need and example usage of this library.

## Installation

To install this library you need to use the following command:

```bash
npm install @rove-team/locale
```

## Create Object Files

It's recommended to create a typescript file for each language and put the object in that file.

## Usage

1. Create an instance of `Locale` class and call the cache method:

```typescript
const locale: Locale = new Locale({
    language: 'en-us',
    localeObject: {
      'en-us': // english us object,
      'fa-ir': // farsi it object
    }
  });
```

2. Get the text value by using the `translate` method:

```typescript
export const englishUSA = {
  hello: "Hi, The {0} is now logged in as {1}",
  goodbye: "Bye",
  user: {
    firstName: "First Name",
    lastName: "Last Name"
  }
}
```

```typescript
const helloValue: string = locale.translate('hello', ['user', 'admin']);
```

```typescript
const userLocale = locale.getCollection('user');

const firstNameValue: string = userLocale.translate('firstName');
```
npm package: @rove-team/requester
Description: The requester project is a wrapper for handling the client side requests
Author: Rove Team Developers
Latest version: 1.0.0

# Requester

The requester project is a wrapper for handling the client side requests.
The latest version of this package, is using axios as its request manager.

## Installation

To install this library using `npm`, you can use the following command:
```bash
npm i @rove-team/requester
```

## Documentation
To use the requester package, you need to create an instance of `Requester` class:
```ts
const requester: Requester = new Requester();
```

Then you can use `get()` and `post()` for sending a get or a post request.

### Get Request
The get method is getting one parameter with some properties which are required for any get request. Also you should specify the type of you response body, by passing a generic type to this method:
```ts
export interface IExampleResponseType {
  readonly name: string;
  readonly family: string;
}

const response: IResponse<IExampleResponseType> = await requester.get<IExampleResponseType>({
  // this is required
  url: 'your request url',
  // this is optional
  options: {
    headers: {
      'Content-Type': 'application/json'
    }
  }
});
```

### Post Request
The post method is getting one parameter with some properties which are required for any post request. Also you should specify the type of your request and response body, by passing two generic type for this method:
```ts
export interface IExampleRequestBodyType {
  readonly username: string;
  readonly password: string;
}

export interface IExampleResponseBodyType {
  readonly name: string;
  readonly family: string;
}

const response: IResponse<IExampleResponseBodyType> = await requester.post<IExampleRequestBodyType, IExampleResponseBodyType>({
  // this is required
  url: 'your request url',
  // this is required
  body: {
    username: 'username',
    password: 'a password'
  },
  // this is optional
  options: {
    headers: {
      'Content-Type': 'application/json'
    }
  }
});
```

### Response Handler
Also theres is a `ResponseHandler` class which is getting your response and organize it for you. If you like to use the `@rove-team/requester` package, it's highly recommended to use this class for your responses. Because if we decide to change our request manager from `axios` to anything else, in our later versions, you don't need to change anything of your previously written codes.

```ts
const responseHandler: ResponseHandler = new ResponseHandler({
  response: // your response goes here
});

const status: IResponseStatus = responseHandler.getStatus();

const body: YourResponseBodyType = responseHandler.getBody<YourResponseBodyType>();

const headers: IHeaderType = responseHandler.getHeaders();
```
npm package: @rover-tools/cli
Description: Rover-CLI is a SAM module generating system, which generates SAM projects based on user requirements. It will have a set of predefined stacks(Auth, CRUD) which are commonly used and  a option to define our custom stacks. It is designed using typescript wi
Author: DGB
Latest version: 0.0.97

# ![Create a sample project](./assets/roverForBright.png)Overview

Rover is CLI tool that generates/updates SAM projects based on predefined modules and components. It helps in deployment by generating CI/CD pipeline or deploy through CLI in few clicks.

Modules are the small functional unit of the project like Email Authentication. Components are combination of AWS services like Lambda with S3 as Trigger.

It is a CLI-based library that supports Node and Python with a some AWS Services.

#### To Install:

npm install @rover-tools/cli -g

**Note**: install the package globally

## Prerequisites

- Python 3
- AWS SAM CLI

In Rover, we have predefined modules, we can select them and create our project or we have options to create custom modules by selecting the components in that module.

# Usage

#### Create or Update

```sh
$ rover init
  1) create new SAM project
  2) add components to existing SAM
  3) add modules to existing SAM
```

#### Deploy

```sh
$ rover deploy
  1) generate pipeline
  2) cli
  3) repository and pipeline

```

**Note**: update and deploy should be done within the SAM project

# Features of Rover

###### Creates new SAM project with predefined Modules and Components

###### Adds Components and Modules to Existing SAM

###### Generates CI/CD Pipeline in SAM projects

###### Deploys SAM project through CLI

# Keywords

Rover, Lambda, S3, CLI , CI/CD Pipeline, SAM Projects

\*\*
npm package: @rover-tools/engine
Description: Rover-Engine is a SAM module generating system, which generates SAM projects based on user requirements. It will have a set of predefined stacks(Auth, CRUD) which are commonly used and  a option to define our custom stacks. It is designed using typescript
Author: DGB
Latest version: 0.0.54

# rover-engine

Rover is a SAM module generating system, which generates SAM projects based on user requirements. It will have a set of predefined stacks(Auth, CRUD) which are commonly used and a option to define our custom stacks. It is designed using typescript with SAM CLI support. Currently, it is a CLI-based library that supports Node and Python with a limited set of AWS services.
npm package: @rover656/react-native-simple-shadow-view
Description: a Native shadow view for react native, for any React Native platform.
Author: Roy Ben-Sasson
Latest version: 1.7.2


# react-native-simple-shadow-view

This Module is updated version of https://github.com/rover656/react-native-simple-shadow-view
Fixing AndroidX support and adds support for Web and Desktop.

## Getting started

`$ npm install @rover656/react-native-simple-shadow-view --save`

### Mostly automatic installation

`$ react-native link @rover656/react-native-simple-shadow-view`

### Manual installation


#### iOS

1. In XCode, in the project navigator, right click `Libraries` ➜ `Add Files to [your project's name]`
2. Go to `node_modules` ➜ `react-native-shadow` and add `RNShadow.xcodeproj`
3. In XCode, in the project navigator, select your project. Add `libRNShadow.a` to your project's `Build Phases` ➜ `Link Binary With Libraries`
4. Run your project (`Cmd+R`)<

#### Android

1. Open up `android/app/src/main/java/[...]/MainActivity.java`
  - Add `import com.como.RNTShadowView.ShadowViewPackage;` to the imports at the top of the file
  - Add `new ShadowViewPackage()` to the list returned by the `getPackages()` method
2. Append the following lines to `android/settings.gradle`:
  	```
  	include ':@vikasrg/react-native-simple-shadow-view'
  	project(':@vikasrg/react-native-simple-shadow-view').projectDir = new File(rootProject.projectDir, 	'../node_modules/@vikasrg/react-native-simple-shadow-view/android')
  	```
3. Insert the following lines inside the dependencies block in `android/app/build.gradle`:
  	```
      implementation project(':@vikasrg/react-native-simple-shadow-view')
  	```
4. Insert the following lines inside the defaultConfig block in `android/app/build.gradle`:
  	```
      renderscriptTargetApi 18
      renderscriptSupportModeEnabled true
  	```


## Usage

Set shadow parameters to the ShadowView just as you use shadows in iOS. it will appear on android same as on iOS.

```javascript
import React, { Component } from 'react';
import ShadowView from '@rover656/react-native-simple-shadow-view'

class MyView extends Component {

	render() {
		return (
			<ShadowView
					style={{
						width: 100,
						height: 100,
						shadowColor: 'black',
						shadowOpacity: 1,
						shadowRadius: 20,
						shadowOffset: { width: 0, height: 0 },
						backgroundColor: 'rgba(0,255,0,0.5)',
					}}
				>
				... Texts / Views / etc ...
				</ShadowView>
			);
	}

export default MyView;
```