# keptn-send-event

> This module used for sending events to Keptn projects.

Latest version **2.0.0** (published 2022-10-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install keptn-send-event
pnpm add keptn-send-event
yarn add keptn-send-event
bun add keptn-send-event
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2022-10-12 |
| First published | 2022-08-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 6 |
| Unpacked size | 12.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Mikita Sharayeu |
| Maintainers | moon1706 |
| Keywords | keptn, typescript |

## Links

- npm: https://www.npmjs.com/package/keptn-send-event
- Repository: https://github.com/Moon1706/keptn-send-event
- Homepage: https://github.com/Moon1706/keptn-send-event#readme
- Issues: https://github.com/Moon1706/keptn-send-event/issues
- npm.io page: https://npm.io/package/keptn-send-event

## Dependencies (6)

- [js-yaml](https://npm.io/package/js-yaml.md) ^4.1.0
- [js-base64](https://npm.io/package/js-base64.md) ^3.7.2
- [@types/tar](https://npm.io/package/@types/tar.md) ^6.1.2
- [node-fetch](https://npm.io/package/node-fetch.md) ^2.6.7
- [@types/node-fetch](https://npm.io/package/@types/node-fetch.md) ^2.6.2
- [@kubernetes/client-node](https://npm.io/package/@kubernetes/client-node.md) ^0.17.0

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 2.0.0 (latest) — 2022-10-12
- 1.0.4 — 2022-08-10
- 1.0.3 — 2022-08-10
- 1.0.2 — 2022-08-10
- 1.0.1 — 2022-08-10
- 1.0.0 — 2022-08-10

## README

# keptn-send-event

[![Standard - JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](http://standardjs.com/)

[![NPM](https://nodei.co/npm/keptn-send-event.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/keptn-send-event/)

Send event to Keptn in Kubernetes cluster.

#### Example

```js
import { send } from "keptn-send-event";

// If you select this section will use port-forwarding and Keptn API token will get from K8s secrets
const kubeSettings = `{
  "enabled": true,
  "namespace": "keptn",
  "secret": "keptn-api-token",
  "service": "api-gateway-nginx"
}`;

// If you have public Keptn URL and `enabled = false` please fill these settings
const keptnAuth = `{
  "keptnURL": "",
  "token": ""
}`;

const event = `{
  "data": {
    "project": "test",
    "stage": "develop",
    "service": "k6",
    "message": "",
    "status": "",
    "result": ""
  },
  "source": "gh",
  "specversion": "1.0",
  "type": "sh.keptn.event.develop.performance.triggered",
  "shkeptnspecversion": "0.2.3"
}`;

const keptnContext = send(event, keptnAuth, kubeSettings);
```

---
_Source: https://npm.io/package/keptn-send-event · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
