open-index/open-npm huggingface dataset:
npm package: @ironman4/commitlint-config-jarvis
Description: Commitlint shareable configuration
Author: al
Latest version: 0.1.3

# commitlint-config-jarvis

本包提供了《ironman前端规约 - Git 规约》配套的 [commitlint 可共享配置](https://commitlint.js.org/#/concepts-shareable-config)，用于对 git commit message 进行校验。

## 安装

除了本包，你需要同时安装 [@commitlint/cli](https://www.npmjs.com/package/@commitlint/cli)：

```bash
npm install @ironman4/commitlint-config-jarvis @commitlint/cli --save-dev
```

## 使用

在你的 `commitlint.config.js` 中继承本包:

```javascript
module.exports = {
  extends: ['jarvis'],
};
```

## 设置 git hook

可通过 [husky](https://www.npmjs.com/package/husky) 设置在 git commit 时触发 commitlint。

首先安装 husky：

```bash
npm install husky --save-dev
```

然后在 `package.json` 中增加：

```json
{
  "husky": {
    "hooks": {
      "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
    }
  }
}
```

更多信息可参考 [commitlint 文档](https://commitlint.js.org/#/guides-local-setup?id=install-husky)。
npm package: @ironman4/eslint-plugin-jarvis
Description: custom eslint rules for ironman
Author: al
Latest version: 1.0.1

# @ironman4/eslint-plugin-jarvis

## 安装

除了本包，你需要同时安装 [ESlint](https://eslint.org/)

```shell
$ npm install @ironman4/eslint-plugin-jarvis eslint --save-dev
```

## 使用

### 引入插件

```js
// .eslintrc.js
module.exports = {
  plugin: ["jarvis"],
  rules: {
    "jarvis/no-secret-info": "error"
  }
}
```

### 使用 presets

```js
// .eslintrc.js
module.exports = {
  // 包含通用规则
  // https://gitee.com/ironman-al/jarvis-spec/tree/main/packages/eslint-plugin-jarvis/src/configs/recommended.js
  extends: "plugin:jarvis/recommended"
}
```

## 支持的规则

- [`no-broad-semantic-versioning`](https://gitee.com/ironman-al/jarvis-spec/tree/main/packages/eslint-plugin-jarvis/docs/rules/no-broad-semantic-versioning.md) 不要指定宽泛的版本范围
- [`no-http-url`](https://gitee.com/ironman-al/jarvis-spec/tree/main/packages/eslint-plugin-jarvis/docs/rules/no-http-url.md) 使用 HTTPS 协议头的 URL，而不是 HTTP
- [`no-js-in-ts-project`](https://gitee.com/ironman-al/jarvis-spec/tree/main/packages/eslint-plugin-jarvis/docs/rules/no-js-in-ts-project.md) 不要在 TS 项目中使用 JS
- [`no-secret-info`](https://gitee.com/ironman-al/jarvis-spec/tree/main/packages/eslint-plugin-jarvis/docs/rules/no-secret-info.md) 不要在代码中直接设置 `password` `token` and `secret` 信息
npm package: @ironman4/markdownlint-config-jarvis
Description: markdownlint shareable configuration
Author: al
Latest version: 0.1.1

# markdownlint-config-jarvis

本包提供了《ironman前端规约 - 文档规约》配套的 [markdownlint 可共享配置](https://www.npmjs.com/package/markdownlint#optionsconfig)。

## 安装

除了本包，你需要同时安装 [markdownlint](https://www.npmjs.com/package/markdownlint)：

```bash
npm install markdownlint-config-jarvis markdownlint --save-dev
```

## 使用

在 `.markdownlint.json` 中继承本包:

```json
{
  "extends": "@ironman4/markdownlint-config-jarvis"
}
```
npm package: @ironman4/stylelint-config-jarvis
Description: stylelint shareable config
Author: al
Latest version: 0.4.2

# @ironman4/stylelint-config-jarvis

本包提供了《ironman前端规约 - CSS 编码规约》配套的 [stylelint 可共享配置](https://stylelint.io/user-guide/configure)。

## 安装

除了本包，你需要同时安装 [stylelint](https://www.npmjs.com/package/stylelint) 和 [stylelint-scss](https://www.npmjs.com/package/stylelint-scss)：

```bash
npm install @ironman4/stylelint-config-jarvis stylelint stylelint-scss --save-dev
```

## 使用

在你的 `.stylelintrc` 中继承本包:

```json
{
  "extends": "@ironman4/stylelint-config-jarvis"
}
```
npm package: @ironplans/eslint-config
Description: This package provides Iron Plan's ESLint config as an extensible shared config.
Author: team@ironplans.com
Latest version: 1.2.0

This package provides Iron Plan's ESLint config as an extensible shared config.

# Usage

Install this module and its peer dependencies into `devDependencies`:
```bash
npx install-peerdeps --dev @ironplans/eslint-config
```

# Release

Uses [semantic-release](https://github.com/semantic-release/semantic-release) for automated releases.
npm package: @ironsource-plus/cordova-plugin
Description: Support for ironSource ads in Cordova and Phonegap apps
Author: Nathan Kerr
Latest version: 1.3.4

# IronSource Ads Cordova Plugin

Add support for [IronSource Ads](https://www.ironsrc.com/) to your Cordova and Phonegap based mobile apps.

## History

This is a fork of [cordova-plugin-ironSource](https://github.com/Dexus/cordova-plugin-ironSource). It aims to be kept up to date as well as enable ad mediation. It is planned to be a drop-in replacement and will retain the same api of that plugin.

#### Currently supports ironSource 8.3.0 (for both iOS and Android)

## How do I install it?

Install using `cordova`:

```
cordova plugin add @ironsource-plus/cordova-plugin
```

## How do I use it?

First, you'll need to construct a new instance of the plugin using `new IronSourceAds`.

The constructor can take 2-4 arguments. The first one is your AppKey from IronSource. The second is a user Identifier. This can be anything and is described [in the IronSource docs](https://developers.is.com/ironsource-mobile/android/additional-sdk-settings-android/#step-1).

The last two are optional. A callback to be ran after the plugin is initialized and true/false to enable the test suite (default false);

```javascript
document.addEventListener('deviceready', function() {

	var isAds = new IronSourceAds("app_key", "some_unique_userid", function(){console.log('Init has finished');}, false);

	// show a rewarded ad
	isAds.showRewardedAd();

	// show a rewarded ad for placement RightHere
	isAds.showRewardedAd("RightHere");

    // show an interstitial
    isAds.showInterstitial();

    // launch in Android Studio/Xcode mediation integration verification
    isAds.validateIntegration();

    // Check is a rewarded video is available to show
    isAds.isRewardedVideoAvailable(function () {
    	alert('Yes');
	}, function () {
		alert('No');
	});

	// Check is an interstitial is available to show
    isAds.isInterstitialAdAvailable(function () {
    	alert('Yes');
	}, function () {
		alert('No');
	});

	// reward your users
	window.addEventListener("onRewardedVideoAdClosed", function(e) {

		var placement = e.placement;
		console.log(placement.placementName);
		console.log(placement.rewardName);
		console.log(placement.rewardAmount);
	}, false);

}, false);
```

## Can I just see a working example?

Yep. Check out the [demo project](https://bitbucket.org/TheBosZ/ironsource-plus/src/master/externals/example-app/). It runs on both Android and iOS.

## What events are supported?

### Interstitial

1. onInterstitialAdClicked
1. onInterstitialAdClosed
1. onInterstitialAdLoadFailed
1. onInterstitialAdOpened
1. onInterstitialAdReady
1. onInterstitialAdShowFailed
1. onInterstitialAdShowSucceeded

### Rewarded Video

1. onRewardedVideoAdClosed
1. onRewardedVideoAdOpened
1. onRewardedVideoAdRewarded
1. onRewardedVideoAdShowFailed
1. onRewardedVideoAvailabilityChanged
1. onRewardedVideoAdClicked
npm package: @ironsource-plus/mediation-admob
Description: IronSource Mediation Adapter for AdMob
Author: Nathan Kerr
Latest version: 1.3.4

## Installation

The Admob mediation plugin needs your App ID, find it and install like this:

```
cordova plugin add https://bitbucket.org/TheBosZ/cordova-plugin-ironsource-plus-mediation-admob --variable ANDROID_APP_ID=ca-app-pub-xxx~xxx --variable IOS_APP_ID=ca-app-pub-xxx~xxx
```
 
 If you fail to do this step, you app will hard crash when you try to run it.