# unleash-client-safe-security

> Unleash Client for Safe Security

Latest version **3.2.0** (published 2023-07-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install unleash-client-safe-security
pnpm add unleash-client-safe-security
yarn add unleash-client-safe-security
bun add unleash-client-safe-security
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 3.2.0 |
| Published | 2023-07-05 |
| First published | 2022-09-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 8.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Aneesh Relan |
| Maintainers | aneeshrelan |

## Links

- npm: https://www.npmjs.com/package/unleash-client-safe-security
- Repository: https://github.com/Safe-Security/unleash-client
- Homepage: https://github.com/Safe-Security/unleash-client#readme
- Issues: https://github.com/Safe-Security/unleash-client/issues
- npm.io page: https://npm.io/package/unleash-client-safe-security

## Dependencies (1)

- [unleash-client](https://npm.io/package/unleash-client.md) ^3.21.0

## Recent versions

- 3.2.0 (latest) — 2023-07-05
- 3.1.2 — 2023-06-20
- 3.1.1 — 2023-06-01
- 3.1.0 — 2023-03-14
- 3.0.1-beta.3 — 2023-03-14
- 3.0.1-beta.2 — 2023-03-14
- 3.0.1-beta.1 — 2023-03-14
- 3.0.0 — 2023-01-30
- 2.0.2 — 2022-12-20
- 2.0.1 — 2022-11-20
- 2.0.0 — 2022-11-15
- 1.0.2 — 2022-09-30
- 1.0.1 — 2022-09-23
- 1.0.0 — 2022-09-22

## README

# unleash-client

This package provides the Unleash configuration used in Safe Security.

## Motivation

Currently in Safe Security, all the services that leverage Unleash functionality required to define the unleash communication mechanism which lead to boilerplate code in each of the services.
Adhering to the DRY (Don't Repeat Yourself) principle, the common configuration has been extracted out as part of this repository and made available for consumption via NPM package.

## Installation

```bash
npm install unleash-client-safe-security
```

```bash
yarn add unleash-client-safe-security
```

## Usage

The introduction of this package makes it very easy for clients to consume & leverage the unleash capabilities.

In Javascript:

```js
const { getInstance } = require("unleash-client-safe-security");

const unleash = getInstance({
    unleashServerUrl: <unleash-url>,
    baseUrl: <app-url>,
    unleashClientApiKey: "zaCELgL.0imfnc8mVLWwsAawjYr4Rx-Af50DDqtlx",
});
```

In Typescript:

```typescript
import { getInstance } from "unleash-client-safe-security";

const unleash = getInstance({
  unleashServerUrl: <unleash-url>,
    baseUrl: <app-url>,
    unleashClientApiKey: "zaCELgL.0imfnc8mVLWwsAawjYr4Rx-Af50DDqtlx",
    unleashAppName: "my-app.com",
    parameters: {
       tenantUrl: {
         valueFromMethod: getTenantUrl(),
         fallback: process.env.TENANT_URL
       }
    }
});
```

---
_Source: https://npm.io/package/unleash-client-safe-security · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
