Skip to content

Commit

Permalink
chore: update README.md [skip-ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
Abhi591 authored and softvar committed Aug 1, 2024
1 parent cbc746b commit 305828e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ Client-side Javascript SDK
- Example on how to pass storage

```javascript
class StorageConnector extends vwo.StorageConnector {
class StorageConnector extends StorageConnector {
constructor() {
super();
}
Expand All @@ -114,7 +114,7 @@ Client-side Javascript SDK
}
}
vwo.init({
init({
sdkKey: '...',
accountId: '123456',
storage: StorageConnector,
Expand All @@ -136,7 +136,7 @@ Client-side Javascript SDK

```javascript
logger: {
level: vwo.LogLevelEnum.DEBUG, // DEBUG, INFO, ERROR, TRACE< WARN
level: LogLevelEnum.DEBUG, // DEBUG, INFO, ERROR, TRACE< WARN
prefix: 'CUSTOM LOG PREFIX', // VWO-SDK default
transport: { // Custom Logger
debug: msg => console.log(msg),
Expand All @@ -147,7 +147,7 @@ Client-side Javascript SDK
}
}
vwo.init({
init({
sdkKey: '...',
accountId: '123456',
logger: logger
Expand All @@ -171,12 +171,12 @@ Client-side Javascript SDK
- **onInit hook**

```javaScript
vwo.init({
init({
sdkKey: '...',
accountId: '123456'
});
vwo.onInit().then(async (vwoClient) => {
onInit().then(async (vwoClient) => {
const feature = await vwoClient.getFlag('feature-key', context);
console.log('getFlag is: ', feature.isEnabled());
}).catch(err => {
Expand All @@ -193,7 +193,7 @@ Client-side Javascript SDK
- Provide a way to fetch settings periodically and update the instance to use the latest settings

```javaScript
const vwoClient = await vwo.init({
const vwoClient = await init({
sdkKey: '...',
accountId: '123456',
pollInterval: 5000 // in milliseconds
Expand All @@ -209,7 +209,7 @@ Client-side Javascript SDK
```javascript
const { init } = require('vwo-fme-node-sdk');
const vwoClient = await vwo.init({
const vwoClient = await init({
accountId: '123456', // VWO Account ID
sdkKey: '32-alpha-numeric-sdk-key', // SDK Key
});
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ yarn add vwo-fme-node-sdk
```javascript
const { init } = require('vwo-fme-node-sdk');

const vwoClient = await vwo.init({
const vwoClient = await init({
accountId: '123456', // VWO Account ID
sdkKey: '32-alpha-numeric-sdk-key', // SDK Key
});
Expand Down

0 comments on commit 305828e

Please sign in to comment.