# @lekko/js-sdk

Latest version **0.1.8-beta.1** (published 2024-10-09) · 0 weekly downloads

## Install

```sh
npm install @lekko/js-sdk
pnpm add @lekko/js-sdk
yarn add @lekko/js-sdk
bun add @lekko/js-sdk
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.8-beta.1 |
| Published | 2024-10-09 |
| First published | 2023-10-17 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 8 |
| Unpacked size | 1.1 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | passichenko, lekko_jonathan, davidsgk, konradlekko |

## Links

- npm: https://www.npmjs.com/package/@lekko/js-sdk
- npm.io page: https://npm.io/package/@lekko/js-sdk

## Dependencies (8)

- [tslib](https://npm.io/package/tslib.md) ^2.6.2
- [xxhashjs](https://npm.io/package/xxhashjs.md) ^0.2.2
- [js-base64](https://npm.io/package/js-base64.md) ^3.7.7
- [lodash.camelcase](https://npm.io/package/lodash.camelcase.md) ^4.3.0
- [lodash.snakecase](https://npm.io/package/lodash.snakecase.md) ^4.1.1
- [@bufbuild/protobuf](https://npm.io/package/@bufbuild/protobuf.md) ^1.7.2
- [@connectrpc/connect](https://npm.io/package/@connectrpc/connect.md) ^1.3.0
- [@connectrpc/connect-web](https://npm.io/package/@connectrpc/connect-web.md) ^1.3.0

## Recent versions

- 0.1.8-beta.1 (latest) — 2024-10-09
- 0.1.7-beta.2 (beta) — 2024-07-18
- 0.1.5-beta-10 (next) — 2024-05-16
- 0.1.7 — 2024-07-18
- 0.1.7-beta.1 — 2024-07-16
- 0.1.6 — 2024-07-16
- 0.1.6-beta.4 — 2024-07-11
- 0.1.6-beta.3 — 2024-07-11
- 0.1.6-beta.2 — 2024-07-03
- 0.1.6-beta.1 — 2024-07-03
- 0.1.5-beta.14 — 2024-07-02
- 0.1.5-beta.13 — 2024-06-10
- 0.1.5-beta.12 — 2024-05-17
- 0.1.5-beta-11 — 2024-05-16
- 0.1.5-beta-9 — 2024-05-16
- … 48 more at https://npm.io/package/@lekko/js-sdk/versions

## README

# js-sdk

A Lekko Client JS library.

### Usage

- Initialize the client with your API Key and repository owner and name.

```
const client = initAPIClient({
  apiKey,
  repositoryOwner,
  repositoryName,
})
```

- Create a context

```
new ClientContext().setString('string', 'hello').setBoolean('bool', true).setInt('int', 2),
```

- Evaluate a config with the context using the proper function for the return type

```
client.getInt(namespaceName, configName, context)
```

---
_Source: https://npm.io/package/@lekko/js-sdk · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
