Skip to content

Commit

Permalink
Merge branch 'main' into website-slack-page
Browse files Browse the repository at this point in the history
  • Loading branch information
kodiakhq[bot] authored Dec 8, 2023
2 parents 17fbcd8 + 89f2786 commit 9cb8625
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,15 +200,15 @@ _In this example, we are using the javascript SDK, but it is still relevant for
#### Install dependencies

```shell
npm i @openfeature/js-sdk @openfeature/go-feature-flag-provider
npm i @openfeature/server-sdk @openfeature/go-feature-flag-provider
```

#### Init your Open Feature client

In your app initialization you have to create a client using the Open Feature SDK and initialize it.

```javascript
const {OpenFeature} = require("@openfeature/js-sdk");
const {OpenFeature} = require("@openfeature/server-sdk");
const {GoFeatureFlagProvider} = require("@openfeature/go-feature-flag-provider");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const {describe, expect, it, beforeEach, afterEach } = require('@jest/globals');
const {OpenFeature} = require("@openfeature/js-sdk");
const {OpenFeature} = require("@openfeature/server-sdk");
const {GoFeatureFlagProvider} = require("@openfeature/go-feature-flag-provider");
describe('Provider tests', () => {
let goffClient;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ The first things we will do is install the **Open Feature SDK** and the **GO Fea
<TabItem value="yarn" label="yarn">

```shell
yarn add @openfeature/js-sdk @openfeature/go-feature-flag-provider
yarn add @openfeature/server-sdk @openfeature/go-feature-flag-provider
```

</TabItem>
<TabItem value="npm" label="npm">

```shell
npm i @openfeature/js-sdk @openfeature/go-feature-flag-provider
npm i @openfeature/server-sdk @openfeature/go-feature-flag-provider
```

</TabItem>
Expand All @@ -40,7 +40,7 @@ This code block shows you how you can create a client that you can use in your a
<TabItem value="javascript" label="JavaScript">

```javascript
const {OpenFeature} = require("@openfeature/js-sdk");
const {OpenFeature} = require("@openfeature/server-sdk");
const {GoFeatureFlagProvider} = require("@openfeature/go-feature-flag-provider");


Expand All @@ -57,7 +57,7 @@ const featureFlagClient = OpenFeature.getClient('my-app')
<TabItem value="ts" label="TypeScript">

```typescript
import {EvaluationContext, OpenFeature} from "@openfeature/js-sdk";
import {EvaluationContext, OpenFeature} from "@openfeature/server-sdk";
import {GoFeatureFlagProvider} from "@openfeature/go-feature-flag-provider";


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,15 @@ _In this example we are using the javascript SDK, but it is still relevant for a
### Install dependencies

```shell
npm i @openfeature/js-sdk @openfeature/go-feature-flag-provider
npm i @openfeature/server-sdk @openfeature/go-feature-flag-provider
```

### Init your Open Feature client

In your app initialization your have to create a client using the Open Feature SDK and initialize it.

```javascript
const {OpenFeature} = require("@openfeature/js-sdk");
const {OpenFeature} = require("@openfeature/server-sdk");
const {GoFeatureFlagProvider} = require("@openfeature/go-feature-flag-provider");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ The first things we will do is install the **Open Feature SDK** and the **GO Fea
<TabItem value="yarn" label="yarn">

```shell
yarn add @openfeature/js-sdk @openfeature/go-feature-flag-provider
yarn add @openfeature/server-sdk @openfeature/go-feature-flag-provider
```

</TabItem>
<TabItem value="npm" label="npm">

```shell
npm i @openfeature/js-sdk @openfeature/go-feature-flag-provider
npm i @openfeature/server-sdk @openfeature/go-feature-flag-provider
```

</TabItem>
Expand Down

0 comments on commit 9cb8625

Please sign in to comment.