open-index/open-npm huggingface dataset:
npm package: @kmudrick/json-schema-io-ts-codecs
Description: Codecs to parse JSON Schema Documents using io-ts
Author: kevin@mudrick.com
Latest version: 0.0.1

# @kmudrick/json-schema-io-ts-codecs

Codecs to parse JSON Schema Documents using io-ts

## Usage

Install:

```
npm i @kmudrick/json-schema-io-ts-codecs
```

Use in code:

```typescript
import * as E from "fp-ts/lib/Either";
import { jsonSchema7Decoder } from "@kmudrick/json-schema-io-ts-codecs/dist/cjs";
import { JSONSchema7 } from "json-schema";

const schema: unknown = {
  foo: {
    description: "This is a Foo",
    type: "object",
    required: ["barType", "fooId"],
    properties: {
      fooUpdatedTimestamp: {
        description: "Time last updated",
        type: "string",
        format: "date-time",
        readOnly: true,
        example: "1994-11-05T08:15:30Z",
      },
      fooId: {
        description: "The unique id of the Foo",
        maxLength: 13,
        minLength: 1,
        pattern: "^[0-9]*$",
        example: "10000673458",
      },
      barType: {
        description: "The Bar type of the Foo",
        type: "string",
        maxLength: 500,
        example: "BazBat",
      },
    },
  },
};

const result = jsonSchema7Decoder.decode(schema);
if (E.isRight(result)) {
  const value: JSONSchema7 = result.right;
  console.log(`Valid JSONSchema7: ${JSON.stringify(value)}`);
} else {
  console.log(`invalid: ${result.left}`);
}
```
npm package: @kmuto/saba-webhook-gateway
Description: Mackerel Webhook Gateway for something services
Author: Kenshi Muto
Latest version: 1.0.0

# Saba Webhook Gateway for Node.js

![](./saba-webhook-gateway.png)

Saba Webhook Gateway for Node.jsは、監視サービス[Mackerel](https://ja.mackerel.io)のWebhookを受け取り、ほかの形式のWebhookに変換して引き渡すゲートウェイのライブラリです。

以下のMackerelのWebhook通知に対応します。

- サンプル（Mackerelの「テスト」で送出されるもの）
- アラート通知
- アラートグループ通知
- ホストステータス変更
- ホスト登録
- ホスト退役
- 監視ルールの操作（追加・変更・削除）

オリジナルの実装はRuby版の[saba-webhook-gateway](https://github.com/kmuto/saba-webhook-gateway)です。

## ビルド

```
npm install
npx tsc
```

distフォルダに以下のファイルが生成されます。

- `SabaWebhookGatewayBase.js`: 基底クラス
- `SabaWebhookGatewayGoogleChat.js`: GoogleChatクラス
- `index.js`: Google ChatのLambda実装例

## Google Chatでの実行

実装のリファレンスとして、Google Chat Webhook変換を用意しています。各通知をGoogle Chatに送信できます（ただし、現時点でGoogle ChatのWebhookは有償プランのみでしか使えません）。

![Google Chatでの通知表示](./googlechat.png)

### Lambdaを使う場合

Lambdaで動かすための実装例を収録しています。

distとnode_modulesをパッケージし、AWS Lambdaにアップロードします。

Google ChatスペースのWebhook URLを取得し、Lambdaの環境変数`GOOGLECHAT_WEBHOOK`に設定してください。

```
https://chat.googleapis.com/v1/spaces/…
```

関数URLまたはAPI GatewayでインターネットからLambdaにアクセスできるようにします。

Mackerel側の通知チャンネルの追加で「Webhook」を選び、URLにエンドポイントURLを指定します。作成されたWebhookチャンネルで「テスト」をクリックすると、サンプルの通知がGoogle Chatに飛びます。

## ライセンス
```
MIT License

Copyright (c) 2023 Kenshi Muto

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
```
npm package: @kmuto/textlint-rule-kmu-termcheck
Description: service name checker for textlint
Author: Kenshi Muto
Latest version: 1.1.1

# @kmuto/textlint-rule-kmu-termcheck

textlint rules to detect typos, such as service names.

[README in Japanese](README_ja.md) for details.

## Install

Install with [npm](https://www.npmjs.com/):

    npm install @kmuto/textlint-rule-kmu-termcheck

## Usage

Via `.textlintrc.json`(Recommended)

```json
{
    "rules": {
        "@kmuto/kmu-termcheck": true
    }
}
```

Via CLI

```
textlint --rule @kmuto/kmu-termcheck README.md
```

You can specify some options.

- `allows: ["word1", "word2", ...]`: Specify words that are allowed even if they are recognized as errors.
- `userDic: ["file1", "file2", ...]`: Specify additional dictionary files. The dictionary file consists of one line per word, separated by newlines, and lines beginning with `#` are ignored.
- `commonDic: true|false`: Control common dictionary loading. (default: true)
- `hatenaDic: true|false`: Control hatena dictionary loading. (default: true)
- `awsDic: true|false`: Control aws dictionary loading. (default: true)
- `googlecloudDic: true|false`: Control googlecloud dictionary loading. (default: true)
- `compoundMode: true|false`: Control word compound mode. (default: true)
- `ignoreFirstCapital: true|false`: Control of ignoring leading capitalization. (default: true)

### Build

Builds source codes for publish to the `lib` folder.
You can write ES2015+ source codes in `src/` folder.

    npm run build

### Tests

Run test code in `test` folder.
Test textlint rule by [textlint-tester](https://github.com/textlint/textlint-tester).

    npm test

## License

```
MIT License

Copyright (c) 2023 Kenshi Muto

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
```
npm package: @kmuto/textlint-rule-preset-kmu-editing
Description: kmuto's generic editing rule for textlint in Japanese
Author: Kenshi Muto
Latest version: 0.0.10

# @kmuto/textlint-rule-preset-kmu-editing

kmuto's generic editing rule for textlint in Japanese

- [npm site](https://www.npmjs.com/package/@kmuto/textlint-rule-preset-kmu-editing)

## Install

Install with [npm](https://www.npmjs.com/):

    npm install @kmuto/textlint-rule-preset-kmu-editing

## Usage

Via `.textlintrc.json`(Recommended)

```json
{
    "rules": {
        "@kmuto/preset-kmu-editing": true
    }
}
```

Via CLI

```
textlint --rule @kmuto/preset-kmu-editing README.md
```

### Build

Builds source codes for publish to the `lib` folder.
You can write ES2015+ source codes in `src/` folder.

    npm run build

### Tests

Run test code in `test` folder.
Test textlint rule by [textlint-tester](https://github.com/textlint/textlint-tester).

    npm test

## License

Copyright (c) 2023 Kenshi Muto

```
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
```
npm package: @kmuto/textlint-rule-preset-kmu-kubernetes
Description: textlint rule for Kubernetes translation in Japanese
Author: Kenshi Muto
Latest version: 0.0.4

# @kmuto/textlint-rule-preset-kmu-kubernetes

textlint rule for Kubernetes translation in Japanese

## Install

Install with [npm](https://www.npmjs.com/):

    npm install @kmuto/textlint-rule-preset-kmu-kubernetes

## Usage

Via `.textlintrc.json`(Recommended)

```json
{
    "rules": {
        "@kmuto/preset-kmu-kubernetes": true
    }
}
```

Via CLI

```
textlint --rule @kmuto/preset-kmu-kubernetes README.md
```

### Build

Builds source codes for publish to the `lib` folder.
You can write ES2015+ source codes in `src/` folder.

    npm run build

### Tests

Run test code in `test` folder.
Test textlint rule by [textlint-tester](https://github.com/textlint/textlint-tester).

    npm test

## License

MIT © Kenshi Muto